R600: Fix wrong address when substituting ENDIF

llvm-svn: 178762
This commit is contained in:
Vincent Lejeune 2013-04-04 14:00:03 +00:00
parent c44fa99719
commit 8e377fdba6
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ public:
CurrentStack--;
MachineInstr *IfOrElseInst = IfThenElseStack.back();
IfThenElseStack.pop_back();
CounterPropagateAddr(IfOrElseInst, CfCount);
CounterPropagateAddr(IfOrElseInst, CfCount + 1);
MachineInstr *MIb = BuildMI(MBB, MI, MBB.findDebugLoc(MI),
TII->get(AMDGPU::POP))
.addImm(CfCount + 1)