# HG changeset patch # User Christian Kamm # Date 1229760824 -3600 # Node ID 2025c9a24efd54db656c42d528f36923c372f1f3 # Parent fa019f0ce718f37646f17ee9aa782a2c0091848e Adjust error message for missing toConstExp to include 'is not a const exp'. diff -r fa019f0ce718 -r 2025c9a24efd gen/toir.cpp --- a/gen/toir.cpp Thu Dec 18 08:09:01 2008 +0100 +++ b/gen/toir.cpp Sat Dec 20 09:13:44 2008 +0100 @@ -2712,7 +2712,7 @@ 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);