commit | 599c0afb244e61fed389ea0d4b5479fbc380dfbf | [log] [tgz] |
---|---|---|
author | Matt Arsenault <Matthew.Arsenault@amd.com> | Mon Oct 21 19:24:15 2013 +0000 |
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | Mon Oct 21 19:24:15 2013 +0000 |
tree | 0d39d126422f12507891a820e04426ff7d93af99 | |
parent | 82e7eda150eda4e4635d96b7725db6d5ede192de [diff] [blame] |
Reuse variable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193107 91177308-0d34-0410-b5e6-96231b3b80d8
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 @@ 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;