summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.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/ScalarEvolution.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/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index e373478f113..10f05bc8dd0 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -1979,7 +1979,7 @@ static bool CanConstantFold(const Instruction *I) {
if (const CallInst *CI = dyn_cast<CallInst>(I))
if (const Function *F = CI->getCalledFunction())
- return canConstantFoldCallTo((Function*)F); // FIXME: elim cast
+ return canConstantFoldCallTo(F);
return false;
}
OpenPOWER on IntegriCloud