Build fix for LLVM r75546 and r75559

This commit is contained in:
Benjamin Kramer
2009-07-14 02:19:05 +02:00
parent 0075194b90
commit 076ef17159
3 changed files with 14 additions and 12 deletions

View File

@@ -557,7 +557,7 @@ LLConstant* DtoConstFP(Type* t, long double value)
assert(llty->isFloatingPoint());
if(llty == LLType::FloatTy || llty == LLType::DoubleTy)
return LLConstantFP::get(llty, value);
return gIR->context().getConstantFP(llty, value);
else if(llty == LLType::X86_FP80Ty) {
uint64_t bits[] = {0, 0};
bits[0] = *(uint64_t*)&value;