diff options
author | Dan Gohman <gohman@apple.com> | 2008-01-31 01:05:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-01-31 01:05:10 +0000 |
commit | fa9b80eb64127b3d9691e18537975635520e51e9 (patch) | |
tree | 0347eede01a95b530473cdf2b2a3e70b98827042 /include/llvm/Analysis/ConstantFolding.h | |
parent | bbfb9c57c71ed4a2a4a60010b98dbfe96c984b14 (diff) | |
download | llvm-fa9b80eb64127b3d9691e18537975635520e51e9.tar.gz llvm-fa9b80eb64127b3d9691e18537975635520e51e9.tar.bz2 llvm-fa9b80eb64127b3d9691e18537975635520e51e9.tar.xz |
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 'include/llvm/Analysis/ConstantFolding.h')
-rw-r--r-- | include/llvm/Analysis/ConstantFolding.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/ConstantFolding.h b/include/llvm/Analysis/ConstantFolding.h index 240df6cf26..a22913a0b9 100644 --- a/include/llvm/Analysis/ConstantFolding.h +++ b/include/llvm/Analysis/ConstantFolding.h @@ -56,7 +56,7 @@ Constant *ConstantFoldLoadThroughGEPConstantExpr(Constant *C, ConstantExpr *CE); /// canConstantFoldCallTo - Return true if its even possible to fold a call to /// the specified function. -bool canConstantFoldCallTo(Function *F); +bool canConstantFoldCallTo(const Function *F); /// ConstantFoldCall - Attempt to constant fold a call to the specified function /// with the specified arguments, returning null if unsuccessful. |