File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2499,11 +2499,14 @@ void LoadableByAddress::updateLoweredTypes(SILFunction *F) {
2499
2499
2500
2500
// / The entry point to this function transformation.
2501
2501
void LoadableByAddress::run () {
2502
+ // Set the SIL state before the PassManager has a chance to run
2503
+ // verification.
2504
+ getModule ()->setStage (SILStage::Lowered);
2505
+
2502
2506
for (auto &F : *getModule ())
2503
2507
runOnFunction (&F);
2504
2508
2505
2509
if (modFuncs.empty ()) {
2506
- getModule ()->setStage (SILStage::Lowered);
2507
2510
return ;
2508
2511
}
2509
2512
@@ -2643,10 +2646,6 @@ void LoadableByAddress::run() {
2643
2646
// Fix all instructions that rely on block storage type
2644
2647
fixStoreToBlockStorageInstrs ();
2645
2648
2646
- // Set the SIL state before the PassManager has a chance to run
2647
- // verification.
2648
- getModule ()->setStage (SILStage::Lowered);
2649
-
2650
2649
// Clean up the data structs:
2651
2650
modFuncs.clear ();
2652
2651
conversionInstrs.clear ();
You can’t perform that action at this time.
0 commit comments