From 98f8aeb45fc1e54437cbb8f2a7445c609deab832 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 11 Apr 2006 06:33:39 +0000 Subject: [PATCH] Only get Tmp2 for cases where number of operands is > 1. Fixed return void. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27586 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 9c5c9643327..0acaf905a2c 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1397,10 +1397,10 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { Tmp1 = DAG.getNode(ISD::TokenFactor, MVT::Other, Tmp1, LastCALLSEQ_END); Tmp1 = LegalizeOp(Tmp1); LastCALLSEQ_END = DAG.getEntryNode(); - Tmp2 = Node->getOperand(1); switch (Node->getNumOperands()) { case 2: // ret val + Tmp2 = Node->getOperand(1); switch (getTypeAction(Tmp2.getValueType())) { case Legal: Result = DAG.UpdateNodeOperands(Result, Tmp1, LegalizeOp(Tmp2)); -- 2.34.1