diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-13 06:53:51 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-13 06:53:51 +0000 |
commit | e288040abf24c91930352eb581e0d95f278c7cc5 (patch) | |
tree | 889f0e7eb4226dc8bb5e2b97437859e7f9674913 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 502c3f48d94e478107e46d56d8d84771138ac33f (diff) | |
download | bcm5719-llvm-e288040abf24c91930352eb581e0d95f278c7cc5.tar.gz bcm5719-llvm-e288040abf24c91930352eb581e0d95f278c7cc5.zip |
Fix PR1323 : we haven't updated phi nodes in good manner :)
llvm-svn: 35963
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index c4add16c744..97f083634d6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -4634,6 +4634,7 @@ void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB, MachineFunction &MF, if (PHIBB == BitTestCases[i].Default) { PHI->addRegOperand(PHINodesToUpdate[pi].second, false); PHI->addMachineBasicBlockOperand(BitTestCases[i].Parent); + PHI->addRegOperand(PHINodesToUpdate[pi].second, false); PHI->addMachineBasicBlockOperand(BitTestCases[i].Cases.back().ThisBB); } // One of "cases" BB. |