aboutsummaryrefslogtreecommitdiff
path: root/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
commitfa9b80eb64127b3d9691e18537975635520e51e9 (patch)
tree0347eede01a95b530473cdf2b2a3e70b98827042 /lib/Analysis/ScalarEvolution.cpp
parentbbfb9c57c71ed4a2a4a60010b98dbfe96c984b14 (diff)
Avoid unnecessarily casting away const, fixing a FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index e373478f11..10f05bc8dd 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/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;
}