mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Make LDC1 compile again.
This commit is contained in:
@@ -229,6 +229,7 @@ Msgtable msgtable[] =
|
||||
{ "no_typeinfo" },
|
||||
{ "no_moduleinfo" },
|
||||
{ "Alloca", "alloca" },
|
||||
{ "Shufflevector", "shufflevector" },
|
||||
{ "vastart", "va_start" },
|
||||
{ "vacopy", "va_copy" },
|
||||
{ "vaend", "va_end" },
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user