[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Evan Cheng
evan.cheng at apple.com
Mon Apr 10 23:33:51 PDT 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.360 -> 1.361
---
Log message:
Only get Tmp2 for cases where number of operands is > 1. Fixed return void.
---
Diffs of the changes: (+1 -1)
LegalizeDAG.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.360 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.361
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.360 Mon Apr 10 21:00:08 2006
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Apr 11 01:33:39 2006
@@ -1397,10 +1397,10 @@
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));
More information about the llvm-commits
mailing list