aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-04-11 06:33:39 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-04-11 06:33:39 +0000
commit98f8aeb45fc1e54437cbb8f2a7445c609deab832 (patch)
tree4f54083988111f4b7bf34a27c1ca185a0798c55f /lib/CodeGen
parenta5bbbcea44d96595a81afdedf05322b6ab9ad570 (diff)
downloadexternal_llvm-98f8aeb45fc1e54437cbb8f2a7445c609deab832.zip
external_llvm-98f8aeb45fc1e54437cbb8f2a7445c609deab832.tar.gz
external_llvm-98f8aeb45fc1e54437cbb8f2a7445c609deab832.tar.bz2
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 9c5c964..0acaf90 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));