diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-24 23:12:18 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-24 23:12:18 +0000 |
commit | aeff8a9c05b1976344c9c865a31071ae3501ce72 (patch) | |
tree | ce5b1185d92269adc40aa80545cd0b67c9e2131c /llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | |
parent | e68f5d6b69f5328ec16178740abb39975d6b3224 (diff) | |
download | bcm5719-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/InstCombineCompares.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index 4ad58c40e4b..dcd295718e9 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -503,7 +503,7 @@ FoldCmpLoadFromIndexedGlobal(GetElementPtrInst *GEP, GlobalVariable *GV, /// If we can't emit an optimized form for this expression, this returns null. /// static Value *EvaluateGEPOffsetExpression(User *GEP, InstCombiner &IC) { - DataLayout &DL = *IC.getDataLayout(); + const DataLayout &DL = *IC.getDataLayout(); gep_type_iterator GTI = gep_type_begin(GEP); // Check to see if this gep only has a single variable index. If so, and if |