Reinstate r133513 (reverted in r133700) with an additional fix for a
[oota-llvm.git] / include / llvm / Support / Compiler.h
index 0df154b5d6d6fce2996d7b4c9122482266555d8b..e0921572182bde9d17c3907990db725995540852 100644 (file)
 
 // 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