[llvm] r285802 - Simplify.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 05:45:29 PDT 2016


Author: joerg
Date: Wed Nov  2 07:45:28 2016
New Revision: 285802

URL: http://llvm.org/viewvc/llvm-project?rev=285802&view=rev
Log:
Simplify.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=285802&r1=285801&r2=285802&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Wed Nov  2 07:45:28 2016
@@ -3550,9 +3550,9 @@ bool SelectionDAGLegalize::ExpandNode(SD
     SDValue Table = Node->getOperand(1);
     SDValue Index = Node->getOperand(2);
 
-    EVT PTy = TLI.getPointerTy(DAG.getDataLayout());
-
     const DataLayout &TD = DAG.getDataLayout();
+    EVT PTy = TLI.getPointerTy(TD);
+
     unsigned EntrySize =
       DAG.getMachineFunction().getJumpTableInfo()->getEntrySize(TD);
 




More information about the llvm-commits mailing list