mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Exclusivity] Enable access markers for the entire -Onone pipeline.
Dynamic markers are still conditional on the command line option.
This commit is contained in:
@@ -435,6 +435,7 @@ static void replaceProjectBoxUsers(SILValue HeapBox, SILValue StackBox) {
|
||||
while (!Worklist.empty()) {
|
||||
auto *Op = Worklist.pop_back_val();
|
||||
if (auto *PBI = dyn_cast<ProjectBoxInst>(Op->getUser())) {
|
||||
// This may result in an alloc_stack being used by begin_access [dymaic].
|
||||
PBI->replaceAllUsesWith(StackBox);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user