From: Aaron Ballman Date: Tue, 30 Oct 2018 19:23:06 +0000 (+0000) Subject: Silencing a -Wunused-variable warning; NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9352705b0a434df7c1f61256ac80c2d26c29c766;p=clang Silencing a -Wunused-variable warning; NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345633 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp b/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp index f23379e235..d86d1ff687 100644 --- a/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp +++ b/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp @@ -174,8 +174,6 @@ static json::Object createLocation(json::Object &&PhysicalLocation, } static Importance calculateImportance(const PathDiagnosticPiece &Piece) { - StringRef PieceStr = Piece.getString(); - switch (Piece.getKind()) { case PathDiagnosticPiece::Kind::Call: case PathDiagnosticPiece::Kind::Macro: