Skip to content

Commit 20e2121

Browse files
committed
[Support] Use llvm_unreachable instead of LLVM_BUILTIN_UNREACHABLE internal define
1 parent b7d3a2b commit 20e2121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/NativeFormatting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,5 +258,5 @@ size_t llvm::getDefaultPrecision(FloatStyle Style) {
258258
case FloatStyle::Percent:
259259
return 2; // Number of decimal places.
260260
}
261-
LLVM_BUILTIN_UNREACHABLE;
261+
llvm_unreachable("Unknown FloatStyle enum");
262262
}

0 commit comments

Comments
 (0)