mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove SILBasicBlock::getBBArgIndex(SILArgument *) in favor of SILArgument::getIndex().
The index is a property of the argument. There is no reason from a modeling perspective to go through the BB to get it. Swift SVN r21338
This commit is contained in:
@@ -860,7 +860,7 @@ private:
|
||||
auto *PreheaderTerm = dyn_cast<BranchInst>(Preheader->getTerminator());
|
||||
if (!PreheaderTerm)
|
||||
return nullptr;
|
||||
auto Start = PreheaderTerm->getArg(Header->getBBArgIndex(HeaderVal));
|
||||
auto Start = PreheaderTerm->getArg(HeaderVal->getIndex());
|
||||
|
||||
// Find the exit condition.
|
||||
auto CondBr = dyn_cast<CondBranchInst>(ExitingBlk->getTerminator());
|
||||
|
||||
Reference in New Issue
Block a user