r345633 - Silencing a -Wunused-variable warning; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 30 12:23:06 PDT 2018
Author: aaronballman
Date: Tue Oct 30 12:23:06 2018
New Revision: 345633
URL: http://llvm.org/viewvc/llvm-project?rev=345633&view=rev
Log:
Silencing a -Wunused-variable warning; NFC.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp?rev=345633&r1=345632&r2=345633&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp Tue Oct 30 12:23:06 2018
@@ -174,8 +174,6 @@ static json::Object createLocation(json:
}
static Importance calculateImportance(const PathDiagnosticPiece &Piece) {
- StringRef PieceStr = Piece.getString();
-
switch (Piece.getKind()) {
case PathDiagnosticPiece::Kind::Call:
case PathDiagnosticPiece::Kind::Macro:
More information about the cfe-commits
mailing list