mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 22:34:39 +00:00
Add a comment explaining why llvm_unreachable_internal doesn't call
the ErrorHandler callback. llvm-svn: 79541
This commit is contained in:
parent
9ad4b47cec
commit
c39a6b16eb
@ -58,6 +58,9 @@ void llvm_report_error(const Twine &reason) {
|
||||
|
||||
void llvm_unreachable_internal(const char *msg, const char *file,
|
||||
unsigned line) {
|
||||
// This code intentionally doesn't call the ErrorHandler callback, because
|
||||
// llvm_unreachable is intended to be used to indicate "impossible"
|
||||
// situations, and not legitimate runtime errors.
|
||||
if (msg)
|
||||
errs() << msg << "\n";
|
||||
errs() << "UNREACHABLE executed";
|
||||
|
Loading…
x
Reference in New Issue
Block a user