mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fix x86_64 cfloat support to work on intended target :)
This commit is contained in:
@@ -165,7 +165,7 @@ struct X86_64_cfloat_rewrite : ABIRetRewrite
|
||||
v = gIR->ir->CreateBitCast(v, LLType::DoubleTy);
|
||||
|
||||
// return {double}
|
||||
const LLType* t = LLStructType::get(LLType::DoubleTy, 0);
|
||||
const LLType* t = LLStructType::get(LLType::DoubleTy, NULL);
|
||||
LLValue* undef = llvm::UndefValue::get(t);
|
||||
return gIR->ir->CreateInsertValue(undef, v, 0);
|
||||
}
|
||||
@@ -173,7 +173,7 @@ struct X86_64_cfloat_rewrite : ABIRetRewrite
|
||||
// {float,float} -> {double}
|
||||
const LLType* type(const LLType* t)
|
||||
{
|
||||
return LLStructType::get(LLType::DoubleTy, 0);
|
||||
return LLStructType::get(LLType::DoubleTy, NULL);
|
||||
}
|
||||
|
||||
// test if rewrite applies to function
|
||||
|
||||
Reference in New Issue
Block a user