diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-21 19:24:15 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-21 19:24:15 +0000 |
commit | 599c0afb244e61fed389ea0d4b5479fbc380dfbf (patch) | |
tree | 0d39d126422f12507891a820e04426ff7d93af99 /lib | |
parent | 82e7eda150eda4e4635d96b7725db6d5ede192de (diff) | |
download | external_llvm-599c0afb244e61fed389ea0d4b5479fbc380dfbf.zip external_llvm-599c0afb244e61fed389ea0d4b5479fbc380dfbf.tar.gz external_llvm-599c0afb244e61fed389ea0d4b5479fbc380dfbf.tar.bz2 |
Reuse variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 0971e8a..2dee377 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -2448,7 +2448,7 @@ bool SelectionDAGBuilder::handleBitTestsSwitchCase(CaseRec& CR, MachineFunction *CurMF = FuncInfo.MF; // If target does not have legal shift left, do not emit bit tests at all. - if (!TLI->isOperationLegal(ISD::SHL, TLI->getPointerTy())) + if (!TLI->isOperationLegal(ISD::SHL, PTy)) return false; size_t numCmps = 0; |