diff options
-rw-r--r-- | lld/ELF/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 7909336f44b..2b0789b972f 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -114,7 +114,7 @@ void LinkerDriver::addFile(StringRef Path) { // Add a given library by searching it from input search paths. void LinkerDriver::addLibrary(StringRef Name) { - StringRef Path = searchLibrary(Name); + std::string Path = searchLibrary(Name); if (Path.empty()) error("Unable to find library -l" + Name); else |