Fix the assert condition on getRootEnv
This commit is contained in:
parent
b3d1151a8b
commit
b1ce34db75
|
@ -71,7 +71,7 @@ SemanticEnv &Namespace::createEnv(SemanticEnv *parent) {
|
||||||
};
|
};
|
||||||
|
|
||||||
SemanticEnv &Namespace::getRootEnv() {
|
SemanticEnv &Namespace::getRootEnv() {
|
||||||
assert(environments.empty() && "Root env is not created!");
|
assert(!environments.empty() && "Root env is not created!");
|
||||||
|
|
||||||
return *environments.front();
|
return *environments.front();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue