[NFC] Use the Correct const-Qualification in Dependency Code

T *const does not prevent logically non-const accesses to the underlying data, it merely indicates that the pointer value itself is const. This modifier can be cast off by a copy, so it's not generally what you want here. Switch to const T * instead.
This commit is contained in:
Robert Widmann
2020-11-11 14:31:18 -08:00
parent 13c97a8905
commit 19e6bee374
5 changed files with 29 additions and 28 deletions

View File

@@ -116,8 +116,8 @@ emitLoadedModuleTraceForAllPrimariesIfNeeded(ModuleDecl *mainModule,
const FrontendOptions &opts) {
opts.InputsAndOutputs.forEachInputProducingSupplementaryOutput(
[&](const InputFile &input) -> bool {
return emitLoadedModuleTraceIfNeeded(mainModule, depTracker, opts,
input);
return swift::emitLoadedModuleTraceIfNeeded(mainModule, depTracker,
opts, input);
});
}