aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/ErrorHandling.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-03-14 20:01:21 +0000
committerJohn McCall <rjmccall@apple.com>2011-03-14 20:01:21 +0000
commit2f9a9ed785416a7350f30141fcc405b69a1b9d5d (patch)
tree04c3811dcf74f84b4eefbe4593cc3d3cd840d2ca /include/llvm/Support/ErrorHandling.h
parent766faf4b2b7fe2835181777fb50d9f4d1814aba5 (diff)
Make llvm_unreachable evaluate to __builtin_unreachable() in -Asserts
builds, which was the apparent consensus of PR8973 and llvmdev. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ErrorHandling.h')
-rw-r--r--include/llvm/Support/ErrorHandling.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/ErrorHandling.h b/include/llvm/Support/ErrorHandling.h
index 5eca438d8b..fb0c88d8d8 100644
--- a/include/llvm/Support/ErrorHandling.h
+++ b/include/llvm/Support/ErrorHandling.h
@@ -97,7 +97,7 @@ namespace llvm {
#define llvm_unreachable(msg) \
::llvm::llvm_unreachable_internal(msg, __FILE__, __LINE__)
#else
-#define llvm_unreachable(msg) ::llvm::llvm_unreachable_internal()
+#define llvm_unreachable(msg) LLVM_BUILTIN_UNREACHABLE
#endif
#endif