]> granicus.if.org Git - clang/commitdiff
Silencing a -Wunused-variable warning; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 30 Oct 2018 19:23:06 +0000 (19:23 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 30 Oct 2018 19:23:06 +0000 (19:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345633 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/SarifDiagnostics.cpp

index f23379e23514b647f9d7061fa2bfc79594e4bafc..d86d1ff6870be00dd394ef46b5d897e56e92a44e 100644 (file)
@@ -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: