From 802e2e741c6bd71f6ca260ce4db696fc5d5d6739 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 18 Feb 2016 04:54:32 +0000 Subject: [PATCH] [TableGen,X86] Add NDEBUG check to a variable initialization that's only used by asserts. NFC llvm-svn: 261188 --- llvm/utils/TableGen/X86RecognizableInstr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp index caae0fc39078..1382f7db22ce 100644 --- a/llvm/utils/TableGen/X86RecognizableInstr.cpp +++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp @@ -561,6 +561,7 @@ void RecognizableInstr::emitInstructionSpecifier() { // 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::emitInstructionSpecifier() { ++additionalOperands; if (HasEVEX_K) ++additionalOperands; +#endif switch (Form) { default: llvm_unreachable("Unhandled form");