[llvm-commits] [llvm] r79541 - /llvm/trunk/lib/Support/ErrorHandling.cpp
Dan Gohman
gohman at apple.com
Thu Aug 20 10:15:20 PDT 2009
Author: djg
Date: Thu Aug 20 12:15:19 2009
New Revision: 79541
URL: http://llvm.org/viewvc/llvm-project?rev=79541&view=rev
Log:
Add a comment explaining why llvm_unreachable_internal doesn't call
the ErrorHandler callback.
Modified:
llvm/trunk/lib/Support/ErrorHandling.cpp
Modified: llvm/trunk/lib/Support/ErrorHandling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ErrorHandling.cpp?rev=79541&r1=79540&r2=79541&view=diff
==============================================================================
--- llvm/trunk/lib/Support/ErrorHandling.cpp (original)
+++ llvm/trunk/lib/Support/ErrorHandling.cpp Thu Aug 20 12:15:19 2009
@@ -58,6 +58,9 @@
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";
More information about the llvm-commits
mailing list