summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Compiler.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-03-14 22:41:50 +0000
committerJohn McCall <rjmccall@apple.com>2011-03-14 22:41:50 +0000
commitb121bfcc22660b1bdfb1183b191b6516988bcaf5 (patch)
tree7271b66182bd26528c3ea4a258986b4ed011f23c /include/llvm/Support/Compiler.h
parent7d4fc4fb345ee8a1de15c718a854b5f38c1e6e46 (diff)
downloadllvm-b121bfcc22660b1bdfb1183b191b6516988bcaf5.tar.gz
llvm-b121bfcc22660b1bdfb1183b191b6516988bcaf5.tar.bz2
llvm-b121bfcc22660b1bdfb1183b191b6516988bcaf5.tar.xz
Version N of the llvm_unreachable patch: VC++ doesn't recognize that abort()
doesn't return, so just go back to using the old runtime function instead of trying to use abort() when __builtin_unreachable (or an equivalent) isn't supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Compiler.h')
-rw-r--r--include/llvm/Support/Compiler.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h
index 0df154b5d6..e092157218 100644
--- a/include/llvm/Support/Compiler.h
+++ b/include/llvm/Support/Compiler.h
@@ -128,12 +128,10 @@
// LLVM_BUILTIN_UNREACHABLE - On compilers which support it, expands
// to an expression which states that it is undefined behavior for the
-// compiler to reach this point.
+// compiler to reach this point. Otherwise is not defined.
#if defined(__clang__) || (__GNUC__ > 4) \
|| (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
# define LLVM_BUILTIN_UNREACHABLE __builtin_unreachable()
-#else
-# define LLVM_BUILTIN_UNREACHABLE abort()
#endif
#endif