aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-04-13 06:53:51 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-04-13 06:53:51 +0000
commit8085bcfdca515a359c746ea475a3b8e9cac1c077 (patch)
treef42b00ae2307f8b76614e08a32f6ce316133b339 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent5a3d40d88fbfe79ad7ed5802ff4fd1498c4c820b (diff)
downloadexternal_llvm-8085bcfdca515a359c746ea475a3b8e9cac1c077.zip
external_llvm-8085bcfdca515a359c746ea475a3b8e9cac1c077.tar.gz
external_llvm-8085bcfdca515a359c746ea475a3b8e9cac1c077.tar.bz2
Fix PR1323 : we haven't updated phi nodes in good manner :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index c4add16..97f0836 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/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.