diff options
author | Jun Bum Lim <junbuml@codeaurora.org> | 2016-05-13 18:38:35 +0000 |
---|---|---|
committer | Jun Bum Lim <junbuml@codeaurora.org> | 2016-05-13 18:38:35 +0000 |
commit | be11bdc4b06ad634442016fce4e13a426ef9caa5 (patch) | |
tree | 1dcfe093082a05473e38364f47aa7ba52b43aa6a /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | |
parent | 4fd6a96008a43a6ff9e8267507211b523488bf7a (diff) | |
download | llvm-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.cpp | 2 |
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); |