aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
diff options
context:
space:
mode:
authorJun Bum Lim <junbuml@codeaurora.org>2016-05-13 18:38:35 +0000
committerJun Bum Lim <junbuml@codeaurora.org>2016-05-13 18:38:35 +0000
commitbe11bdc4b06ad634442016fce4e13a426ef9caa5 (patch)
tree1dcfe093082a05473e38364f47aa7ba52b43aa6a /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
parent4fd6a96008a43a6ff9e8267507211b523488bf7a (diff)
downloadllvm-be11bdc4b06ad634442016fce4e13a426ef9caa5.zip
llvm-be11bdc4b06ad634442016fce4e13a426ef9caa5.tar.gz
llvm-be11bdc4b06ad634442016fce4e13a426ef9caa5.tar.bz2
Rename getLargestLegalIntTypeSize to getLargestLegalIntTypeSizeInBits(). NFC.
Summary: Rename DataLayout::getLargestLegalIntTypeSize to DataLayout::getLargestLegalIntTypeSizeInBits() to prevent similar mistakes fixed in r269433. Reviewers: joker.eph, mcrosier Subscribers: mcrosier, llvm-commits Differential Revision: http://reviews.llvm.org/D20248 llvm-svn: 269456
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index ddb866c..cc3d168 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -2201,7 +2201,7 @@ Instruction *InstCombiner::visitSwitchInst(SwitchInst &SI) {
// truncated to i8 or i16.
bool TruncCond = false;
if (NewWidth > 0 && BitWidth > NewWidth &&
- NewWidth >= DL.getLargestLegalIntTypeSize()) {
+ NewWidth >= DL.getLargestLegalIntTypeSizeInBits()) {
TruncCond = true;
IntegerType *Ty = IntegerType::get(SI.getContext(), NewWidth);
Builder->SetInsertPoint(&SI);