[clang] 5eab94f - Eliminate unused-variable warning.
Sterling Augustine via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 26 12:41:34 PDT 2022
Author: Sterling Augustine
Date: 2022-08-26T12:40:55-07:00
New Revision: 5eab94f7eb20c2f5d3123e7401892a1a6a133e38
URL: https://github.com/llvm/llvm-project/commit/5eab94f7eb20c2f5d3123e7401892a1a6a133e38
DIFF: https://github.com/llvm/llvm-project/commit/5eab94f7eb20c2f5d3123e7401892a1a6a133e38.diff
LOG: Eliminate unused-variable warning.
Added:
Modified:
clang/lib/Frontend/SARIFDiagnostic.cpp
Removed:
################################################################################
diff --git a/clang/lib/Frontend/SARIFDiagnostic.cpp b/clang/lib/Frontend/SARIFDiagnostic.cpp
index d19426c91a3d..2bcbd5cf34f2 100644
--- a/clang/lib/Frontend/SARIFDiagnostic.cpp
+++ b/clang/lib/Frontend/SARIFDiagnostic.cpp
@@ -71,8 +71,7 @@ SarifResult SARIFDiagnostic::addLocationToResult(
FileID FID = Loc.getFileID();
if (FID.isValid()) {
if (const FileEntry *FE = Loc.getFileEntry()) {
- llvm::StringRef Filename =
- emitFilename(FE->getName(), Loc.getManager());
+ emitFilename(FE->getName(), Loc.getManager());
// FIXME(llvm-project/issues/57366): File-only locations
}
}
More information about the cfe-commits
mailing list