diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-17 04:43:56 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-17 04:43:56 +0000 |
commit | fdebc38523b397743973ff6a2d2e93b112dd96e5 (patch) | |
tree | 03c93b31dc3e434c640e0180231461400e390529 /lib/VMCore/Core.cpp | |
parent | 21506061ef031a01fce5cc1781f30780fbecb59b (diff) |
Remove unreachable code. (replace with llvm_unreachable to help GCC where necessary)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Core.cpp')
-rw-r--r-- | lib/VMCore/Core.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 35315df220..82edb3a4e6 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -1092,8 +1092,7 @@ LLVMLinkage LLVMGetLinkage(LLVMValueRef Global) { return LLVMCommonLinkage; } - // Should never get here. - return static_cast<LLVMLinkage>(0); + llvm_unreachable("Make GCC's unreachability happy"); } void LLVMSetLinkage(LLVMValueRef Global, LLVMLinkage Linkage) { |