File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ class SILPhiArgument : public SILArgument {
291
291
// /
292
292
// / Returns false when called on a non-phi and when the visitor returns false.
293
293
bool visitTransitiveIncomingPhiOperands (
294
- function_ref<bool (SILPhiArgument *, Operand *)> visitor);
294
+ function_ref<bool (SILPhiArgument *, Operand *)> visitor) const ;
295
295
296
296
// / Returns true if we were able to find a single terminator operand value for
297
297
// / each predecessor of this arguments basic block. The found values are
Original file line number Diff line number Diff line change @@ -227,12 +227,12 @@ bool SILPhiArgument::getIncomingPhiValues(
227
227
}
228
228
229
229
bool SILPhiArgument::visitTransitiveIncomingPhiOperands (
230
- function_ref<bool (SILPhiArgument *, Operand *)> visitor) {
230
+ function_ref<bool (SILPhiArgument *, Operand *)> visitor) const {
231
231
if (!isPhi ())
232
232
return false ;
233
233
234
234
GraphNodeWorklist<SILPhiArgument *, 4 > worklist;
235
- worklist.initialize ( this );
235
+ worklist.insert ( const_cast <SILPhiArgument *>( this ) );
236
236
237
237
while (auto *argument = worklist.pop ()) {
238
238
SmallVector<Operand *> operands;
You can’t perform that action at this time.
0 commit comments