mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Fixup InputFile Convenience Getters
Follow programming guidelines for these getters more closely and have them return a non-owning view of the underlying data instead of relying on callers to take const references to the copy that is returned here.
This commit is contained in:
@@ -699,7 +699,7 @@ bool swift::emitLoadedModuleTraceIfNeeded(ModuleDecl *mainModule,
|
||||
assert(!ctxt.hadError() &&
|
||||
"We should've already exited earlier if there was an error.");
|
||||
|
||||
auto loadedModuleTracePath = input.loadedModuleTracePath();
|
||||
auto loadedModuleTracePath = input.getLoadedModuleTracePath();
|
||||
if (loadedModuleTracePath.empty())
|
||||
return false;
|
||||
std::error_code EC;
|
||||
|
||||
Reference in New Issue
Block a user