[llvm] r313649 - Move "(void)variable" closer to the assertion that uses it, NFC
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 19 10:47:53 PDT 2017
Author: kparzysz
Date: Tue Sep 19 10:47:53 2017
New Revision: 313649
URL: http://llvm.org/viewvc/llvm-project?rev=313649&view=rev
Log:
Move "(void)variable" closer to the assertion that uses it, NFC
Modified:
llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=313649&r1=313648&r2=313649&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Tue Sep 19 10:47:53 2017
@@ -1236,7 +1236,6 @@ RegisterInfoEmitter::runTargetDesc(raw_o
<< " = {\n";
for (unsigned M = 0; M < NumModes; ++M) {
unsigned EV = 0;
- (void)EV;
OS << " // Mode = " << M << " (";
if (M == 0)
OS << "Default";
@@ -1245,6 +1244,7 @@ RegisterInfoEmitter::runTargetDesc(raw_o
OS << ")\n";
for (const auto &RC : RegisterClasses) {
assert(RC.EnumValue == EV++ && "Unexpected order of register classes");
+ (void)EV;
const RegSizeInfo &RI = RC.RSI.get(M);
OS << " { " << RI.RegSize << ", " << RI.SpillSize << ", "
<< RI.SpillAlignment;
More information about the llvm-commits
mailing list