diff options
author | Jim Grosbach <grosbach@apple.com> | 2013-04-05 21:20:12 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2013-04-05 21:20:12 +0000 |
commit | 03fceff6f69a0261a767aab8e62de8aa9301b86c (patch) | |
tree | e6badb98a176a5d43510188bae9b568555b970dd /lib/Transforms/InstCombine/InstCombineCompares.cpp | |
parent | 2da70d1792abf0ad837578991f492a3dd0364118 (diff) | |
download | external_llvm-03fceff6f69a0261a767aab8e62de8aa9301b86c.zip external_llvm-03fceff6f69a0261a767aab8e62de8aa9301b86c.tar.gz external_llvm-03fceff6f69a0261a767aab8e62de8aa9301b86c.tar.bz2 |
Tidy up a bit. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCompares.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCompares.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index a96e754..415ee9f 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -232,7 +232,7 @@ FoldCmpLoadFromIndexedGlobal(GetElementPtrInst *GEP, GlobalVariable *GV, Constant *Init = GV->getInitializer(); if (!isa<ConstantArray>(Init) && !isa<ConstantDataArray>(Init)) return 0; - + uint64_t ArrayElementCount = Init->getType()->getArrayNumElements(); if (ArrayElementCount > 1024) return 0; // Don't blow up on huge arrays. |