mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Reverted "Fixed a bunch of ldc1 regressions". Because there is a better way to fix them.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user