summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-24 23:12:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-24 23:12:18 +0000
commitaeff8a9c05b1976344c9c865a31071ae3501ce72 (patch)
treece5b1185d92269adc40aa80545cd0b67c9e2131c /llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
parente68f5d6b69f5328ec16178740abb39975d6b3224 (diff)
downloadbcm5719-llvm-aeff8a9c05b1976344c9c865a31071ae3501ce72.tar.gz
bcm5719-llvm-aeff8a9c05b1976344c9c865a31071ae3501ce72.zip
Make some DataLayout pointers const.
No functionality change. Just reduces the noise of an upcoming patch. llvm-svn: 202087
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
index 5c1d1b136b3..063ab171e9f 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
@@ -235,7 +235,7 @@ isEliminableCastPair(
const CastInst *CI, ///< The first cast instruction
unsigned opcode, ///< The opcode of the second cast instruction
Type *DstTy, ///< The target type for the second cast instruction
- DataLayout *DL ///< The target data for pointer size
+ const DataLayout *DL ///< The target data for pointer size
) {
Type *SrcTy = CI->getOperand(0)->getType(); // A from above
OpenPOWER on IntegriCloud