diff options
Diffstat (limited to 'lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp b/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp index b1f599c63fa..8d11a202434 100644 --- a/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp +++ b/lld/lib/ReaderWriter/PECOFF/PECOFFTargetInfo.cpp @@ -90,10 +90,10 @@ void PECOFFTargetInfo::addImplicitFiles(InputFiles &files) const { /// Append the given file to the input file list. The file must be an object /// file or an import library file. void PECOFFTargetInfo::appendInputFileOrLibrary(std::string path) { - std::string ext = llvm::sys::path::extension(path).lower(); + StringRef ext = llvm::sys::path::extension(path); // 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") { + if (ext.equals_lower(".lib")) { if (containDirectoryName(path)) { appendInputFile(path); return; |

