diff gen/toir.cpp @ 864:2025c9a24efd

Adjust error message for missing toConstExp to include 'is not a const exp'.
author Christian Kamm <kamm incasoftware de>
date Sat, 20 Dec 2008 09:13:44 +0100
parents 7edce7e58ab1
children af7a6faf9406
line wrap: on
line diff
--- 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);