[llvm] r268383 - [mips] Fix unused variable warning for release builds introduced by r268379.
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 07:00:37 PDT 2016
Author: dsanders
Date: Tue May 3 09:00:37 2016
New Revision: 268383
URL: http://llvm.org/viewvc/llvm-project?rev=268383&view=rev
Log:
[mips] Fix unused variable warning for release builds introduced by r268379.
Modified:
llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
Modified: llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp?rev=268383&r1=268382&r2=268383&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp Tue May 3 09:00:37 2016
@@ -138,9 +138,7 @@ static void printExpr(const MCExpr *Expr
} else
SRE = cast<MCSymbolRefExpr>(Expr);
- MCSymbolRefExpr::VariantKind Kind = SRE->getKind();
-
- assert(Kind == MCSymbolRefExpr::VK_None && "Invalid kind!");
+ assert(SRE->getKind() == MCSymbolRefExpr::VK_None && "Invalid kind!");
SRE->getSymbol().print(OS, MAI);
More information about the llvm-commits
mailing list