File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7686,10 +7686,16 @@ class BranchInst final
7686
7686
unsigned getNumArgs () const { return getAllOperands ().size (); }
7687
7687
SILValue getArg (unsigned i) const { return getAllOperands ()[i].get (); }
7688
7688
7689
+ // / Return the SILPhiArgument for the given operand.
7690
+ const SILPhiArgument *getArgForOperand (const Operand *oper) const {
7691
+ auto *self = const_cast <BranchInst *>(this );
7692
+ return self->getArgForOperand (oper);
7693
+ }
7694
+
7689
7695
// / Return the SILPhiArgument for the given operand.
7690
7696
// /
7691
7697
// / See SILArgument.cpp.
7692
- const SILPhiArgument *getArgForOperand (const Operand *oper) const ;
7698
+ SILPhiArgument *getArgForOperand (const Operand *oper);
7693
7699
};
7694
7700
7695
7701
// / A conditional branch.
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ TermInst *SILPhiArgument::getSingleTerminator() const {
300
300
return const_cast <SILBasicBlock *>(predBlock)->getTerminator ();
301
301
}
302
302
303
- const SILPhiArgument *BranchInst::getArgForOperand (const Operand *oper) const {
303
+ SILPhiArgument *BranchInst::getArgForOperand (const Operand *oper) {
304
304
assert (oper->getUser () == this );
305
305
return cast<SILPhiArgument>(
306
306
getDestBB ()->getArgument (oper->getOperandNumber ()));
You can’t perform that action at this time.
0 commit comments