diff options
Diffstat (limited to 'lib/CodeGen/StatementGen.cc')
| -rw-r--r-- | lib/CodeGen/StatementGen.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/StatementGen.cc b/lib/CodeGen/StatementGen.cc index 529f7f0..5edb303 100644 --- a/lib/CodeGen/StatementGen.cc +++ b/lib/CodeGen/StatementGen.cc @@ -13,8 +13,9 @@ void CodeGen::emitStmt(StmtAST *Stmt) { SaveAndRestore<int> Location(DiagnosticLine, Stmt && Stmt->getLine() ? Stmt->getLine() : DiagnosticLine); if (!Stmt) return; - if (dynamic_cast<IncludeStmtAST*>(Stmt) || dynamic_cast<GlobalBlockAST*>(Stmt)) { - reportError("INCLUDE and GLOBAL are not supported yet"); + if (dynamic_cast<IncludeStmtAST*>(Stmt)) return; + if (dynamic_cast<GlobalBlockAST*>(Stmt)) { + reportError("GLOBAL is not supported yet"); return; } |
