From 364cfb67145bcd20eb1646145de6c019b1131f4b Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 31 Aug 2012 01:14:00 +0200 Subject: [PATCH] Improved initializer ICE error message. --- gen/llvmhelpers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 30279c26..87854689 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -1509,7 +1509,8 @@ LLConstant* DtoConstExpInit(Loc loc, Type* type, Expression* exp) } else { - error("cannot yet convert default initializer %s of type %s to %s", exp->toChars(), exp->type->toChars(), type->toChars()); + error(loc, "LDC internal error: cannot yet convert default initializer %s of type %s to %s", + exp->toChars(), exp->type->toChars(), type->toChars()); fatal(); } assert(0);