Reverted "Fixed a bunch of ldc1 regressions". Because there is a better way to fix them.

This commit is contained in:
Alexey Prokhin
2011-01-06 11:45:38 +03:00
parent c5e9784863
commit 66edce9058
2 changed files with 12 additions and 12 deletions

View File

@@ -667,12 +667,12 @@ LLConstant* DtoBitCast(LLConstant* v, const LLType* t)
LLValue* DtoInsertValue(LLValue* aggr, LLValue* v, unsigned idx, const char* name)
{
return gIR->ir->CreateInsertValue(aggr, v, idx, name);
return gIR->ir->CreateInsertValue(aggr, v, idx, name ? name : "tmp");
}
LLValue* DtoExtractValue(LLValue* aggr, unsigned idx, const char* name)
{
return gIR->ir->CreateExtractValue(aggr, idx, name);
return gIR->ir->CreateExtractValue(aggr, idx, name ? name : "tmp");
}
//////////////////////////////////////////////////////////////////////////////////////////