diff gen/toir.cpp @ 860:7edce7e58ab1

Add more toConstElem stubs to get better error messages.
author Christian Kamm <kamm incasoftware de>
date Thu, 18 Dec 2008 07:59:03 +0100
parents a719f2ca3e92
children 2025c9a24efd
line wrap: on
line diff
--- a/gen/toir.cpp	Wed Dec 17 21:24:17 2008 +0100
+++ b/gen/toir.cpp	Thu Dec 18 07:59:03 2008 +0100
@@ -2714,6 +2714,9 @@
 
 #define CONSTSTUB(x) LLConstant* x::toConstElem(IRState * p) {error("const Exp type "#x" not implemented: '%s' type: '%s'", toChars(), type->toChars()); fatal(); return NULL; }
 CONSTSTUB(Expression);
+CONSTSTUB(GEPExp);
+CONSTSTUB(SliceExp);
+CONSTSTUB(IndexExp);
 CONSTSTUB(AssocArrayLiteralExp);
 
 unsigned Type::totym() { return 0; }