[llvm-commits] [llvm-gcc-4.2] r75482 - /llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp

Owen Anderson resistor at mac.com
Mon Jul 13 11:28:53 PDT 2009


Author: resistor
Date: Mon Jul 13 13:28:53 2009
New Revision: 75482

URL: http://llvm.org/viewvc/llvm-project?rev=75482&view=rev
Log:
Missed one place to update for the LLVM API change.  I don't know why my test build didn't catch this one.

Modified:
    llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp

Modified: llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp?rev=75482&r1=75481&r2=75482&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp Mon Jul 13 13:28:53 2009
@@ -341,7 +341,7 @@
     Function *smax = Intrinsic::getDeclaration(TheModule, smax_iid[N]);
     Function *subss = Intrinsic::getDeclaration(TheModule, subss_iid[N]);
 
-    Value *ActualOps[] = { Constant::getNullValue(ResultType), Ops[0] };
+    Value *ActualOps[] = {getGlobalContext().getNullValue(ResultType), Ops[0] };
     Result = Builder.CreateCall(subss, ActualOps, ActualOps+2, "tmp");
     ActualOps[0] = Ops[0];
     ActualOps[1] = Result;





More information about the llvm-commits mailing list