Avoid freeing the primitive types classes.
This commit is contained in:
parent
69b145e216
commit
5830ecd67e
|
|
@ -92,7 +92,7 @@ class ScopeBase {
|
||||||
std::map<perm_string,const VType*> cur_types_; //current types
|
std::map<perm_string,const VType*> cur_types_; //current types
|
||||||
// Constant declarations...
|
// Constant declarations...
|
||||||
struct const_t {
|
struct const_t {
|
||||||
~const_t() {delete typ; delete val;}
|
~const_t() {delete val;}
|
||||||
const_t(const VType*t, Expression* v) : typ(t), val(v) {};
|
const_t(const VType*t, Expression* v) : typ(t), val(v) {};
|
||||||
|
|
||||||
const VType*typ;
|
const VType*typ;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue