@@ -4519,9 +4519,9 @@ static bool scanBufferForCXXModuleUsage(const llvm::MemoryBuffer &Buffer) {
45194519 const char *Ptr = Buffer.getBufferStart ();
45204520 skipToRelevantCXXModuleText (Ptr);
45214521
4522- // Check if buffer has enough bytes left to check for the module-related
4523- // declaration fragment we want to check without making potentially
4524- // memory-mapped buffer load unnecessary pages.
4522+ // Check if the buffer has enough remaining bytes left for any of the
4523+ // module-related declaration fragments we are checking for, without making
4524+ // the potentially memory-mapped buffer load unnecessary pages.
45254525 constexpr int MinKeywordLength = 6 ;
45264526 const char *Begin = Ptr;
45274527 for (int i = 0 ; i < MinKeywordLength; ++i) {
@@ -4592,7 +4592,6 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args,
45924592
45934593 if (Args.hasFlag (options::OPT_fmodules_driver,
45944594 options::OPT_fno_modules_driver, false )) {
4595- Diags.Report (diag::remark_fmodules_driver_enabled);
45964595 // TODO: Move the logic for implicitly enabling explicit-module-builds out
45974596 // of -fmodules-driver once it is no longer experimental.
45984597 // Currently, this serves diagnostic purposes only.
@@ -4611,7 +4610,7 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args,
46114610 return ;
46124611 }
46134612
4614- Driver:: BuildDefaultActions (C, Args, Inputs, Actions);
4613+ BuildDefaultActions (C, Args, Inputs, Actions);
46154614}
46164615
46174616void Driver::BuildDefaultActions (Compilation &C, DerivedArgList &Args,
0 commit comments