From ff31c804a9ec49fb2bd391b2bd90d0491ad7df11 Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Thu, 26 Feb 2009 14:48:47 +0100 Subject: [PATCH] Fix x86_64 cfloat support to work on intended target :) --- gen/abi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/abi.cpp b/gen/abi.cpp index a52f6847..5bb09323 100644 --- a/gen/abi.cpp +++ b/gen/abi.cpp @@ -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