summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ConstantFolding.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-01-31 01:05:10 +0000
committerDan Gohman <gohman@apple.com>2008-01-31 01:05:10 +0000
commita65951fef0751835fdac48b71afe93622a806bc3 (patch)
tree4633be96fecab55df741ed773289b06524a2c1d5 /llvm/lib/Analysis/ConstantFolding.cpp
parented346f2ed53ec820ffdb1b7e3890ede3aa943ab5 (diff)
downloadbcm5719-llvm-a65951fef0751835fdac48b71afe93622a806bc3.tar.gz
bcm5719-llvm-a65951fef0751835fdac48b71afe93622a806bc3.zip
Avoid unnecessarily casting away const, fixing a FIXME.
llvm-svn: 46591
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r--llvm/lib/Analysis/ConstantFolding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index 21e19444cfe..e29b2dba86c 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -508,7 +508,7 @@ Constant *llvm::ConstantFoldLoadThroughGEPConstantExpr(Constant *C,
/// canConstantFoldCallTo - Return true if its even possible to fold a call to
/// the specified function.
bool
-llvm::canConstantFoldCallTo(Function *F) {
+llvm::canConstantFoldCallTo(const Function *F) {
switch (F->getIntrinsicID()) {
case Intrinsic::sqrt:
case Intrinsic::powi:
OpenPOWER on IntegriCloud