changeset 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 fa019f0ce718
children 5e5873d847f6
files gen/toir.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);