From: Craig Topper Date: Sun, 28 May 2017 18:24:37 +0000 (+0000) Subject: [TableGen][X86] Add an llvm_unreachable to a switch so we get an error if we need... X-Git-Tag: llvmorg-5.0.0-rc1~4072 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bf31523251c3fad5648e8be89693ddee22602f3;p=platform%2Fupstream%2Fllvm.git [TableGen][X86] Add an llvm_unreachable to a switch so we get an error if we need expansion in the future. llvm-svn: 304097 --- diff --git a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp index 1495b0b..b3be593 100644 --- a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp +++ b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp @@ -585,6 +585,7 @@ void X86FoldTablesEmitter::updateTables(const CodeGenInstruction *RegInstr, Record *MemOpRec = MemInstr->Operands[i].Rec; if (isRegisterOperand(RegOpRec) && isMemoryOperand(MemOpRec)) { switch (i) { + default: llvm_unreachable("Unexpected operand count!"); case 0: addEntryWithFlags(Table0, RegInstr, MemInstr, S, 0); return;