for (SmallVectorImpl<ResumeInst*>::iterator
I = Resumes.begin(), E = Resumes.end(); I != E; ++I) {
ResumeInst *RI = *I;
- BranchInst::Create(UnwindBB, RI->getParent());
+ BasicBlock *Parent = RI->getParent();
+ BranchInst::Create(UnwindBB, Parent);
Instruction *ExnObj = GetExceptionObject(RI);
- PN->addIncoming(ExnObj, RI->getParent());
+ PN->addIncoming(ExnObj, Parent);
++NumResumesLowered;
}