diff --git a/gen/toir.cpp b/gen/toir.cpp index 1958ef8b..b4226d07 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -3022,7 +3022,8 @@ STUB(PowAssignExp); #define CONSTSTUB(x) LLConstant* x::toConstElem(IRState * p) { \ error("expression '%s' is not a constant", toChars()); \ - fatal(); \ + if (!global.gag) \ + fatal(); \ return NULL; \ } CONSTSTUB(Expression);