[llvm-commits] [llvm-gcc-4.2] r77682 - /llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp
Bob Wilson
bob.wilson at apple.com
Fri Jul 31 09:47:42 PDT 2009
Author: bwilson
Date: Fri Jul 31 11:47:41 2009
New Revision: 77682
URL: http://llvm.org/viewvc/llvm-project?rev=77682&view=rev
Log:
Fix for recent LLVM API changes.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp?rev=77682&r1=77681&r2=77682&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp Fri Jul 31 11:47:41 2009
@@ -51,7 +51,7 @@
// Set the Result to an undefined value.
const Type *ResTy = ConvertType(TREE_TYPE(exp));
if (ResTy->isSingleValueType())
- Result = getGlobalContext().getUndef(ResTy);
+ Result = UndefValue::get(ResTy);
// Return true, which can be propagated as the return value of
// TargetIntrinsicLower, to indicate that no further error message
@@ -1393,7 +1393,7 @@
return BadImmediateError(exp, Result);
Result = Builder.CreateICmp(ICmpInst::ICMP_NE,
Builder.CreateAnd(Ops[0], Ops[1]),
- Context.getConstantAggregateZero(ResultType));
+ ConstantAggregateZero::get(ResultType));
Result = Builder.CreateSExt(Result, ResultType);
break;
More information about the llvm-commits
mailing list