File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -948,9 +948,13 @@ static bool performCompile(CompilerInstance &Instance,
948
948
949
949
// We've just been told to perform a typecheck, so we can return now.
950
950
if (Action == FrontendOptions::ActionType::Typecheck) {
951
- const bool hadPrintAsObjCError = printAsObjCIfNeeded (
952
- Invocation.getObjCHeaderOutputPathForAtMostOnePrimary (),
953
- Instance.getMainModule (), opts.ImplicitObjCHeaderPath , moduleIsPublic);
951
+ const bool hadPrintAsObjCError =
952
+ Invocation.getFrontendOptions ()
953
+ .InputsAndOutputs .hasObjCHeaderOutputPath () &&
954
+ printAsObjCIfNeeded (
955
+ Invocation.getObjCHeaderOutputPathForAtMostOnePrimary (),
956
+ Instance.getMainModule (), opts.ImplicitObjCHeaderPath ,
957
+ moduleIsPublic);
954
958
955
959
const bool hadEmitIndexDataError = emitIndexData (Invocation, Instance);
956
960
You can’t perform that action at this time.
0 commit comments