Skip to content

Commit 671033a

Browse files
committed
[ssa-updater] Allow a user to set the InsertedPHIs list after construction.
I need this API so that I can conditionally handle the inserted phis.
1 parent 27fd0a7 commit 671033a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/SILOptimizer/Utils/SILSSAUpdater.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ class SILSSAUpdater {
6363
SmallVectorImpl<SILPhiArgument *> *InsertedPHIs = nullptr);
6464
~SILSSAUpdater();
6565

66+
void setInsertedPhis(SmallVectorImpl<SILPhiArgument *> *insertedPhis) {
67+
InsertedPHIs = insertedPhis;
68+
}
69+
6670
/// Initialize for a use of a value of type.
6771
void Initialize(SILType T);
6872

0 commit comments

Comments
 (0)