Skip to content

Commit 5eab94f

Browse files
Eliminate unused-variable warning.
1 parent 9405af1 commit 5eab94f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Frontend/SARIFDiagnostic.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ SarifResult SARIFDiagnostic::addLocationToResult(
7171
FileID FID = Loc.getFileID();
7272
if (FID.isValid()) {
7373
if (const FileEntry *FE = Loc.getFileEntry()) {
74-
llvm::StringRef Filename =
75-
emitFilename(FE->getName(), Loc.getManager());
74+
emitFilename(FE->getName(), Loc.getManager());
7675
// FIXME(llvm-project/issues/57366): File-only locations
7776
}
7877
}

0 commit comments

Comments
 (0)