diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp index f5e762e87ce1..9537204d5920 100644 --- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp +++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp @@ -3865,6 +3865,7 @@ bool AArch64AsmParser::showMatchError(SMLoc Loc, unsigned ErrCode, case RegConstraintEqualityTy::EqualsReg: return Error(Loc, "operand must match destination register"); } + llvm_unreachable("Unknown RegConstraintEqualityTy"); } case Match_MissingFeature: return Error(Loc,