diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-07-11 20:13:58 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-07-11 20:13:58 +0000 |
commit | 97c8c51f075ff49b1f67f6d7d31969212d72512b (patch) | |
tree | 851914832d6a60ea4d8350e5d7533229947b45e7 /include/llvm/Support/ErrorHandling.h | |
parent | c25e7581b9b8088910da31702d4ca21c4734c6d7 (diff) |
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ErrorHandling.h')
-rw-r--r-- | include/llvm/Support/ErrorHandling.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Support/ErrorHandling.h b/include/llvm/Support/ErrorHandling.h index 1a401eb7c0..d9938a1483 100644 --- a/include/llvm/Support/ErrorHandling.h +++ b/include/llvm/Support/ErrorHandling.h @@ -41,11 +41,12 @@ namespace llvm { /// Reports a serious error, calling any installed error handler. /// If no error handler is installed the default is to print the message to + /// standard error, followed by a newline. void llvm_report_error(const std::string &reason) NORETURN; - /// This function calls abort(). - /// Call this after assert(0), so that compiler knows the path is not - /// reachable. + /// This function calls abort(), and prints the optional message to stderr. + /// Call this instead of assert(0), so that compiler knows the path is not + /// reachable even for NDEBUG builds. void llvm_unreachable(const char *msg=0) NORETURN; } |