diff gen/tollvm.cpp @ 1539:6364e09628fd

Build fix for LLVM r75546 and r75559
author Benjamin Kramer <benny.kra@gmail.com>
date Tue, 14 Jul 2009 02:19:05 +0200
parents 61f12f4651b5
children 7fcb72d518f6
line wrap: on
line diff
--- a/gen/tollvm.cpp	Tue Jul 14 18:24:40 2009 +0200
+++ b/gen/tollvm.cpp	Tue Jul 14 02:19:05 2009 +0200
@@ -557,7 +557,7 @@
     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;