[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

@@ -699,7 +699,7 @@ bool swift::emitLoadedModuleTraceIfNeeded(ModuleDecl *mainModule,
assert(!ctxt.hadError() &&
"We should've already exited earlier if there was an error.");
StringRef loadedModuleTracePath = input.loadedModuleTracePath();
auto loadedModuleTracePath = input.loadedModuleTracePath();
if (loadedModuleTracePath.empty())
return false;
std::error_code EC;