Skip to content

Commit f86d6ca

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 5682a1f commit f86d6ca

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
@@ -1431,7 +1431,7 @@ static void performParallelIRGeneration(IRGenDescriptor desc) {
14311431
}
14321432

14331433
if (auto *synthSFU = File->getSynthesizedFile()) {
1434-
CurrentIGMPtr IGM = irgen.getGenModule(&synthSFU->getFileUnit());
1434+
CurrentIGMPtr IGM = irgen.getGenModule(synthSFU);
14351435
IGM->emitSynthesizedFileUnit(*synthSFU);
14361436
}
14371437
} else {

test/Macros/extension_emission.swift

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

0 commit comments

Comments
 (0)