Skip to content

Commit a401d15

Browse files
committed
Revert "[IRGen] Fetch the correct IGM for synthesized files"
rdar://131352085 This change caused the problems it was supposed to fix for Macros to appear with Differentiation. This reverts commit d33f2c4.
1 parent b6c6e86 commit a401d15

File tree

2 files changed

+1
-62
lines changed

2 files changed

+1
-62
lines changed

lib/IRGen/IRGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ static void performParallelIRGeneration(IRGenDescriptor desc) {
14431443
}
14441444

14451445
if (auto *synthSFU = File->getSynthesizedFile()) {
1446-
CurrentIGMPtr IGM = irgen.getGenModule(&synthSFU->getFileUnit());
1446+
CurrentIGMPtr IGM = irgen.getGenModule(synthSFU);
14471447
IGM->emitSynthesizedFileUnit(*synthSFU);
14481448
}
14491449
} else {

test/Macros/extension_emission.swift

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)