Fucking hell, how deep is this build configuration layered?

This commit is contained in:
Michael Fabain Dirks
2016-05-07 23:13:21 +02:00
parent ac6e64d7e8
commit 05eac75030
11 changed files with 6 additions and 5 deletions
+5 -1
View File
@@ -76,7 +76,11 @@ void VarDeclNode::proto(DeclSeq *d, Environ *e) {
delete expr; expr = 0;
}
if (kind & DECL_PARAM) {
if (expr == nullptr) {
ex("Internal Error: expr turned into nullptr (3)");
}
if (kind & DECL_PARAM) { // Heap corruption, this being replaced again?
defType = ty->constType(); ty = defType->valueType;
}
} else if (constant) ex("Constants must be initialized");