diff options
Diffstat (limited to 'include/llvm/Support/ErrorHandling.h')
-rw-r--r-- | include/llvm/Support/ErrorHandling.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/ErrorHandling.h b/include/llvm/Support/ErrorHandling.h index c7e4297f00..1a401eb7c0 100644 --- a/include/llvm/Support/ErrorHandling.h +++ b/include/llvm/Support/ErrorHandling.h @@ -46,11 +46,11 @@ namespace llvm { /// This function calls abort(). /// Call this after assert(0), so that compiler knows the path is not /// reachable. - void llvm_unreachable(void) NORETURN; + void llvm_unreachable(const char *msg=0) NORETURN; } #ifndef NDEBUG -#define LLVM_UNREACHABLE(msg) do {cerr<<msg<<"\n";llvm_unreachable();}while(0) +#define LLVM_UNREACHABLE(msg) llvm_unreachable(msg) #else #define LLVM_UNREACHABLE(msg) llvm_unreachable() #endif |