[llvm] 20e2121 - [Support] Use llvm_unreachable instead of LLVM_BUILTIN_UNREACHABLE internal define
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 6 08:26:09 PST 2022
Author: Simon Pilgrim
Date: 2022-02-06T16:26:00Z
New Revision: 20e212197a5d84f02da14b567d43ae16d46fc643
URL: https://github.com/llvm/llvm-project/commit/20e212197a5d84f02da14b567d43ae16d46fc643
DIFF: https://github.com/llvm/llvm-project/commit/20e212197a5d84f02da14b567d43ae16d46fc643.diff
LOG: [Support] Use llvm_unreachable instead of LLVM_BUILTIN_UNREACHABLE internal define
Added:
Modified:
llvm/lib/Support/NativeFormatting.cpp
Removed:
################################################################################
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");
}
More information about the llvm-commits
mailing list