[llvm] r193107 - Reuse variable
Matt Arsenault
Matthew.Arsenault at amd.com
Mon Oct 21 12:24:16 PDT 2013
Author: arsenm
Date: Mon Oct 21 14:24:15 2013
New Revision: 193107
URL: http://llvm.org/viewvc/llvm-project?rev=193107&view=rev
Log:
Reuse variable
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=193107&r1=193106&r2=193107&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Mon Oct 21 14:24:15 2013
@@ -2448,7 +2448,7 @@ bool SelectionDAGBuilder::handleBitTests
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;
More information about the llvm-commits
mailing list