Unbreak the build :(
authorChris Lattner <sabre@nondot.org>
Fri, 6 Jan 2006 05:47:48 +0000 (05:47 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 6 Jan 2006 05:47:48 +0000 (05:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25124 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index e7368f0a0cc0369b72b5f36b65133d640471f0b0..bf12091b058a1025420a1c5f5a04bf96f5c2a226 100644 (file)
@@ -1303,8 +1303,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
     }
     }
 
-    MVT::ValueType VT = Node->getValueType(0);
-    switch (TLI.getOperationAction(Node->getOpcode(), VT)) {
+    switch (TLI.getOperationAction(Node->getOpcode(),
+                                   Node->getValueType(0))) {
     default: assert(0 && "This action is not supported yet!");
     case TargetLowering::Custom: {
       SDOperand Tmp = TLI.LowerOperation(Result, DAG);