diff options
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/ConstantsContext.h | 1 | ||||
-rw-r--r-- | lib/VMCore/Core.cpp | 3 | ||||
-rw-r--r-- | lib/VMCore/Instruction.cpp | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/lib/VMCore/ConstantsContext.h b/lib/VMCore/ConstantsContext.h index cfcdf134ab..4ee4296d44 100644 --- a/lib/VMCore/ConstantsContext.h +++ b/lib/VMCore/ConstantsContext.h @@ -458,7 +458,6 @@ struct ConstantCreator<ConstantExpr, Type, ExprMapKeyType> { return new CompareConstantExpr(Ty, Instruction::FCmp, V.subclassdata, V.operands[0], V.operands[1]); llvm_unreachable("Invalid ConstantExpr!"); - return 0; } }; 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) { diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index 8c8fbf9acd..e0e07099c5 100644 --- a/lib/VMCore/Instruction.cpp +++ b/lib/VMCore/Instruction.cpp @@ -166,8 +166,6 @@ const char *Instruction::getOpcodeName(unsigned OpCode) { default: return "<Invalid operator> "; } - - return 0; } /// isIdenticalTo - Return true if the specified instruction is exactly |