From a5d98db6913c0a93cb7446a837d84126585cb2f5 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 6 Feb 2022 16:25:44 +0000 Subject: [PATCH] [Support] Use llvm_unreachable instead of LLVM_BUILTIN_UNREACHABLE internal define (cherry picked from commit 20e212197a5d84f02da14b567d43ae16d46fc643) --- llvm/lib/Support/NativeFormatting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/NativeFormatting.cpp b/llvm/lib/Support/NativeFormatting.cpp index 0a797046bb684..fa417be95fb7a 100644 --- a/llvm/lib/Support/NativeFormatting.cpp +++ b/llvm/lib/Support/NativeFormatting.cpp @@ -258,5 +258,5 @@ size_t llvm::getDefaultPrecision(FloatStyle Style) { case FloatStyle::Percent: return 2; // Number of decimal places. } - LLVM_BUILTIN_UNREACHABLE; + llvm_unreachable("Unknown FloatStyle enum"); }