mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user