Adjust error message for missing toConstExp to include 'is not a const exp'.

This commit is contained in:
Christian Kamm
2008-12-20 09:13:44 +01:00
parent 2d573974d7
commit 61a5a08135

View File

@@ -2712,7 +2712,7 @@ STUB(TupleExp);
STUB(SymbolExp);
#endif
#define CONSTSTUB(x) LLConstant* x::toConstElem(IRState * p) {error("const Exp type "#x" not implemented: '%s' type: '%s'", toChars(), type->toChars()); fatal(); return NULL; }
#define CONSTSTUB(x) LLConstant* x::toConstElem(IRState * p) {error("non-const expression '%s' or const Exp type "#x" not implemented", toChars()); fatal(); return NULL; }
CONSTSTUB(Expression);
CONSTSTUB(GEPExp);
CONSTSTUB(SliceExp);