================ @@ -223,6 +227,10 @@ InstructionContext RecognizableInstr::insnContext() const { insnContext = EVEX_KB_U(IC_EVEX_XD); else if (OpPrefix == X86Local::PS) insnContext = EVEX_KB_U(IC_EVEX); + else { + errs() << "Instruction does not use a prefix: " << Name << "\n"; + llvm_unreachable("Invalid prefix"); ---------------- phoebewang wrote:
There are only 2 out of 4141 `grep -rwn llvm_unreachable llvm/lib/ | wc` use `+` to show more detail. I think `llvm_unreachable` is mainly used to show the position to developer, so no need detailed information. https://github.com/llvm/llvm-project/pull/101616 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits