Skip to content

Commit ebe1f50

Browse files
author
Pavel Chupin
authored
[SYCL][Driver][NFC] Fix unused variable warning (#5792)
llvm/clang/lib/Driver/Driver.cpp:9141:13: error: unused variable 'Ext' [-Werror,-Wunused-variable] StringRef Ext(llvm::sys::path::extension(FileName).drop_front());
1 parent af29982 commit ebe1f50

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/lib/Driver/Driver.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -8331,7 +8331,6 @@ bool clang::driver::isStaticArchiveFile(const StringRef &FileName) {
83318331
if (!llvm::sys::path::has_extension(FileName))
83328332
// Any file with no extension should not be considered an Archive.
83338333
return false;
8334-
StringRef Ext(llvm::sys::path::extension(FileName).drop_front());
83358334
llvm::file_magic Magic;
83368335
llvm::identify_magic(FileName, Magic);
83378336
// Only .lib and archive files are to be considered.

0 commit comments

Comments
 (0)