diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-12 14:06:48 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-12 14:06:48 +0000 |
commit | b804a2b751ac0d1a5673ec395c4cecb326e73dfb (patch) | |
tree | 3f55036b549a4067ca1c1c12cf860e118e229e1c /llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp | |
parent | 0a33f7e678e8d778e499ad42e0b610b15f5ba772 (diff) | |
download | bcm5719-llvm-b804a2b751ac0d1a5673ec395c4cecb326e73dfb.tar.gz bcm5719-llvm-b804a2b751ac0d1a5673ec395c4cecb326e73dfb.zip |
Second attempt at de-constifying LLVM Types in FunctionType::get(),
StructType::get() and TargetData::getIntPtrType().
llvm-svn: 134982
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 6247b0348f1..66c30284414 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp @@ -992,7 +992,7 @@ struct FFSOpt : public LibCallOptimization { } // ffs(x) -> x != 0 ? (i32)llvm.cttz(x)+1 : 0 - const Type *ArgType = Op->getType(); + Type *ArgType = Op->getType(); Value *F = Intrinsic::getDeclaration(Callee->getParent(), Intrinsic::cttz, &ArgType, 1); Value *V = B.CreateCall(F, Op, "cttz"); |