mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[frontend] Switch -debug-assert-* from llvm_unreachable() to assert(0).
Swift SVN r13656
This commit is contained in:
@@ -68,7 +68,9 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
if (const Arg *A = Args.getLastArg(OPT_debug_crash_Group)) {
|
||||
Option Opt = A->getOption();
|
||||
if (Opt.matches(OPT_debug_assert_immediately)) {
|
||||
llvm_unreachable("This is an assertion!");
|
||||
// This assertion should always fail, per the user's request, and should
|
||||
// not be converted to llvm_unreachable.
|
||||
assert(0 && "This is an assertion!");
|
||||
} else if (Opt.matches(OPT_debug_crash_immediately)) {
|
||||
LLVM_BUILTIN_TRAP;
|
||||
} else if (Opt.matches(OPT_debug_assert_after_parse)) {
|
||||
|
||||
Reference in New Issue
Block a user