commit | f362affa3a695164a94d275fb44d18f44ebb855a | [log] [tgz] |
---|---|---|
author | Jay Foad <jay.foad@gmail.com> | Mon Jul 11 07:56:41 2011 +0000 |
committer | Jay Foad <jay.foad@gmail.com> | Mon Jul 11 07:56:41 2011 +0000 |
tree | c07a3ce28c975fcda45c377276692e508f0dc79a | |
parent | 7f0ce349187e6526ed2d92fe7d2757f84f73ce04 [diff] [blame] |
De-constify Types in FunctionType::get(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134888 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 6247b03..66c3028 100644 --- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/lib/Transforms/Scalar/SimplifyLibCalls.cpp
@@ -992,7 +992,7 @@ } // 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");