[llvm] r304097 - [TableGen][X86] Add an llvm_unreachable to a switch so we get an error if we need expansion in the future.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun May 28 11:24:37 PDT 2017
Author: ctopper
Date: Sun May 28 13:24:37 2017
New Revision: 304097
URL: http://llvm.org/viewvc/llvm-project?rev=304097&view=rev
Log:
[TableGen][X86] Add an llvm_unreachable to a switch so we get an error if we need expansion in the future.
Modified:
llvm/trunk/utils/TableGen/X86FoldTablesEmitter.cpp
Modified: llvm/trunk/utils/TableGen/X86FoldTablesEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86FoldTablesEmitter.cpp?rev=304097&r1=304096&r2=304097&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/X86FoldTablesEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/X86FoldTablesEmitter.cpp Sun May 28 13:24:37 2017
@@ -585,6 +585,7 @@ void X86FoldTablesEmitter::updateTables(
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;
More information about the llvm-commits
mailing list