Make LDC1 compile again.

This commit is contained in:
kai
2012-08-17 15:34:17 +02:00
parent e6a07ffdfe
commit 692d624db4
2 changed files with 2 additions and 1 deletions

View File

@@ -229,6 +229,7 @@ Msgtable msgtable[] =
{ "no_typeinfo" },
{ "no_moduleinfo" },
{ "Alloca", "alloca" },
{ "Shufflevector", "shufflevector" },
{ "vastart", "va_start" },
{ "vacopy", "va_copy" },
{ "vaend", "va_end" },

View File

@@ -954,7 +954,7 @@ DValue* CallExp::toElem(IRState* p)
for(int i = 2, n = arguments->dim; i < n; i++){
Expression* exp = static_cast<Expression*>(arguments->data[i]);
if(exp->op != TOKint64){
error("Function %s was declared with pragma shufflevector. Because of that all of its arguments except the first two must be integer literals.", f->toChars());
error("Function %s was declared with pragma shufflevector. Because of that all of its arguments except the first two must be integer literals.", fndecl->toChars());
fatal();
}
IntegerExp* iexp = static_cast<IntegerExp*>(arguments->data[i]);