From 8085bcfdca515a359c746ea475a3b8e9cac1c077 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Fri, 13 Apr 2007 06:53:51 +0000 Subject: 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 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp') 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. -- cgit v1.1