From: Krzysztof Parzyszek Date: Tue, 19 Sep 2017 17:47:53 +0000 (+0000) Subject: Move "(void)variable" closer to the assertion that uses it, NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6c562401cb02213ba6a2151517081bd56151bde;p=llvm Move "(void)variable" closer to the assertion that uses it, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313649 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 92fa270c0fb..5b2659d64ef 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -1236,7 +1236,6 @@ RegisterInfoEmitter::runTargetDesc(raw_ostream &OS, CodeGenTarget &Target, << " = {\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_ostream &OS, CodeGenTarget &Target, 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;