diff options
-rw-r--r-- | lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp b/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp index 8c2352319ec..0d5a359a293 100644 --- a/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp +++ b/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp @@ -57,7 +57,7 @@ bool PECOFFTargetInfo::validateImpl(raw_ostream &diagnostics) { /// Append the given file to the input file list. The file must be an object /// file or an import library file. bool PECOFFTargetInfo::appendInputFileOrLibrary(std::string path) { - StringRef ext = llvm::sys::path::extension(path).lower(); + std::string ext = llvm::sys::path::extension(path).lower(); // This is an import library file. Look for the library file in the search // paths, unless the path contains a directory name. if (ext == ".lib") { |