Compiler.h: Leave LLVM_BUILTIN_UNREACHABLE undefined if it is unavailable in host...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 3 Jan 2013 03:30:22 +0000 (03:30 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 3 Jan 2013 03:30:22 +0000 (03:30 +0000)
commit1eae141f195b7edd060c2c872ea3eac4ce937262
tree5b04e84752e70803ad014d63813b68fa956d68b1
parent82860f63e1678077fe665c21179b9df47fd313bb
Compiler.h: Leave LLVM_BUILTIN_UNREACHABLE undefined if it is unavailable in host compiler.

Users of LLVM_BUILTIN_UNREACHABLE should be responsible in the case when LLVM_BUILTIN_UNREACHABLE is undefined.

Actually, (0, (p)) in LLVM_ASSUME_ALIGNED(p, a) caused thousands of warnings on g++-4.4. It was a motivation in this commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171455 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Compiler.h