Commit 867eef3d authored by Marius Wachtler's avatar Marius Wachtler

Fix read of uninitialized variable

Currently many places in the codebase create AST_Jump objects but do not initalice the line ,col numbers. Set them to -1, in order to not call SetCurrentDebugLocation with random locations.
parent 134c3b57
......@@ -808,7 +808,10 @@ public:
virtual void accept(ASTVisitor* v);
virtual void accept_stmt(StmtVisitor* v);
AST_Jump() : AST_stmt(AST_TYPE::Jump) {}
AST_Jump() : AST_stmt(AST_TYPE::Jump) {
lineno = -1;
col_offset = -1;
}
static const AST_TYPE::AST_TYPE TYPE = AST_TYPE::Jump;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment