mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 07:59:57 +00:00
[TableGen,X86] Add NDEBUG check to a variable initialization that's only used by asserts. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261188 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a5754d7efa
commit
2082d39556
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user