File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
include/swift/SILOptimizer/Utils Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -248,12 +248,12 @@ class InstructionDeleter {
248
248
InstructionDeleter (InstModCallbacks chainedCallbacks = InstModCallbacks())
249
249
: deadInstructions(), iteratorRegistry(chainedCallbacks) {}
250
250
251
- InstModCallbacks &getCallbacks () { return iteratorRegistry.getCallbacks (); }
252
-
253
251
UpdatingInstructionIteratorRegistry &getIteratorRegistry () {
254
252
return iteratorRegistry;
255
253
}
256
254
255
+ InstModCallbacks &getCallbacks () { return iteratorRegistry.getCallbacks (); }
256
+
257
257
llvm::iterator_range<UpdatingInstructionIterator>
258
258
updatingRange (SILBasicBlock *bb) {
259
259
return iteratorRegistry.makeIteratorRange (bb);
@@ -264,6 +264,12 @@ class InstructionDeleter {
264
264
return iteratorRegistry.makeReverseIteratorRange (bb);
265
265
}
266
266
267
+ bool hadCallbackInvocation () const {
268
+ return const_cast <InstructionDeleter *>(this )
269
+ ->getCallbacks ()
270
+ .hadCallbackInvocation ();
271
+ }
272
+
267
273
// / If the instruction \p inst is dead, record it so that it can be cleaned
268
274
// / up.
269
275
// /
You can’t perform that action at this time.
0 commit comments