# HG changeset patch # User Frits van Bommel # Date 1235656127 -3600 # Node ID 223a679053dd35115fc08fac54e09b5c0657ae05 # Parent 2137797748a8aed390bb1431a946ff4e2dc4cb6e Fix x86_64 cfloat support to work on intended target :) diff -r 2137797748a8 -r 223a679053dd gen/abi.cpp --- a/gen/abi.cpp Thu Feb 26 14:23:18 2009 +0100 +++ b/gen/abi.cpp Thu Feb 26 14:48:47 2009 +0100 @@ -165,7 +165,7 @@ 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 @@ // {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