Skip to content

Commit f822349

Browse files
committed
Rename getTerminatorForResultArg to getTerminatorForResult.
1 parent 155b2fc commit f822349

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/swift/SIL/SILArgument.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class SILArgument : public ValueBase {
183183

184184
/// Return the terminator instruction for which this argument is a result,
185185
/// otherwise return nullptr.
186-
TermInst *getTerminatorForResultArg() const;
186+
TermInst *getTerminatorForResult() const;
187187

188188
/// Return the SILArgumentKind of this argument.
189189
SILArgumentKind getKind() const {
@@ -299,7 +299,7 @@ class SILPhiArgument : public SILArgument {
299299

300300
/// Return the terminator instruction for which this argument is a result,
301301
/// otherwise return nullptr.
302-
TermInst *getTerminatorForResultArg() const;
302+
TermInst *getTerminatorForResult() const;
303303

304304
static bool classof(const SILInstruction *) = delete;
305305
static bool classof(const SILUndef *) = delete;
@@ -445,10 +445,10 @@ inline TermInst *SILArgument::getSingleTerminator() const {
445445
llvm_unreachable("Covered switch is not covered?!");
446446
}
447447

448-
inline TermInst *SILArgument::getTerminatorForResultArg() const {
448+
inline TermInst *SILArgument::getTerminatorForResult() const {
449449
switch (getKind()) {
450450
case SILArgumentKind::SILPhiArgument:
451-
return cast<SILPhiArgument>(this)->getTerminatorForResultArg();
451+
return cast<SILPhiArgument>(this)->getTerminatorForResult();
452452
case SILArgumentKind::SILFunctionArgument:
453453
return nullptr;
454454
}

lib/SIL/IR/SILArgument.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ TermInst *SILPhiArgument::getSingleTerminator() const {
316316
return const_cast<SILBasicBlock *>(predBlock)->getTerminator();
317317
}
318318

319-
TermInst *SILPhiArgument::getTerminatorForResultArg() const {
319+
TermInst *SILPhiArgument::getTerminatorForResult() const {
320320
if (auto *termInst = getSingleTerminator()) {
321321
if (!isa<BranchInst>(termInst) && !isa<CondBranchInst>(termInst))
322322
return termInst;

0 commit comments

Comments
 (0)