File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -646,16 +646,11 @@ void CompilerInstance::parseLibraryFile(
646
646
SourceFileKind::Library, implicitImports.kind , BufferID);
647
647
addAdditionalInitialImportsTo (NextInput, implicitImports);
648
648
649
- auto *DelayedCB = SecondaryDelayedCB;
650
- if (isPrimaryInput (BufferID)) {
651
- DelayedCB = PrimaryDelayedCB;
652
- }
653
- if (isWholeModuleCompilation ())
654
- DelayedCB = PrimaryDelayedCB;
649
+ auto IsPrimary = isWholeModuleCompilation () || isPrimaryInput (BufferID);
650
+ auto *DelayedCB = IsPrimary ? PrimaryDelayedCB : SecondaryDelayedCB;
655
651
656
652
auto &Diags = NextInput->getASTContext ().Diags ;
657
653
auto DidSuppressWarnings = Diags.getSuppressWarnings ();
658
- auto IsPrimary = isWholeModuleCompilation () || isPrimaryInput (BufferID);
659
654
Diags.setSuppressWarnings (DidSuppressWarnings || !IsPrimary);
660
655
661
656
bool Done;
You can’t perform that action at this time.
0 commit comments