Mercurial > projects > ldc
diff gen/abi.cpp @ 991:223a679053dd
Fix x86_64 cfloat support to work on intended target :)
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Thu, 26 Feb 2009 14:48:47 +0100 |
parents | 420ef073448d |
children | 6e7dc3caccdd |
line wrap: on
line diff
--- 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