Skip to content

Commit 66501f8

Browse files
committed
[SIL] Don't abort via llvm_unreachable.
It is a way to indicate to the compiler that the line can't be reached. On some configurations, it does happen to trap, as desired. Use a function that always traps, since that's the intent.
1 parent 25a8885 commit 66501f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/Verifier/LinearLifetimeCheckerPrivate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class LLVM_LIBRARY_VISIBILITY LinearLifetimeChecker::ErrorBuilder {
208208
}
209209

210210
llvm::errs() << "Found ownership error?!\n";
211-
llvm_unreachable("triggering standard assertion failure routine");
211+
llvm::report_fatal_error("triggering standard assertion failure routine");
212212
}
213213
};
214214

0 commit comments

Comments
 (0)