summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/X86RecognizableInstr.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-02-18 04:54:32 +0000
committerCraig Topper <craig.topper@gmail.com>2016-02-18 04:54:32 +0000
commit802e2e741c6bd71f6ca260ce4db696fc5d5d6739 (patch)
tree3a1b5eda6480a7c77369bea64a9bc4fc81ee5e25 /llvm/utils/TableGen/X86RecognizableInstr.cpp
parent8a01c4105991334aa833103a7e0c631eb33a7b9d (diff)
downloadbcm5719-llvm-802e2e741c6bd71f6ca260ce4db696fc5d5d6739.tar.gz
bcm5719-llvm-802e2e741c6bd71f6ca260ce4db696fc5d5d6739.zip
[TableGen,X86] Add NDEBUG check to a variable initialization that's only used by asserts. NFC
llvm-svn: 261188
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.cpp')
-rw-r--r--llvm/utils/TableGen/X86RecognizableInstr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp
index caae0fc3907..1382f7db22c 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");
OpenPOWER on IntegriCloud