[llvm] r261188 - [TableGen, X86] Add NDEBUG check to a variable initialization that's only used by asserts. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 17 20:54:32 PST 2016
Author: ctopper
Date: Wed Feb 17 22:54:32 2016
New Revision: 261188
URL: http://llvm.org/viewvc/llvm-project?rev=261188&view=rev
Log:
[TableGen,X86] Add NDEBUG check to a variable initialization that's only used by asserts. NFC
Modified:
llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp
Modified: llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp?rev=261188&r1=261187&r2=261188&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp (original)
+++ llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp Wed Feb 17 22:54:32 2016
@@ -561,6 +561,7 @@ void RecognizableInstr::emitInstructionS
// physicalOperandIndex should always be < numPhysicalOperands
unsigned physicalOperandIndex = 0;
+#ifndef NDEBUG
// Given the set of prefix bits, how many additional operands does the
// instruction have?
unsigned additionalOperands = 0;
@@ -568,6 +569,7 @@ void RecognizableInstr::emitInstructionS
++additionalOperands;
if (HasEVEX_K)
++additionalOperands;
+#endif
switch (Form) {
default: llvm_unreachable("Unhandled form");
More information about the llvm-commits
mailing list