diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/MergeFunctions.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/MergeFunctions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp index 31e36d8994c..9cc4daa9d26 100644 --- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp +++ b/llvm/lib/Transforms/IPO/MergeFunctions.cpp @@ -129,7 +129,7 @@ static bool isEquivalentType(const Type *Ty1, const Type *Ty2) { return false; default: - LLVM_UNREACHABLE("Unknown type!"); + llvm_unreachable("Unknown type!"); return false; case Type::PointerTyID: { @@ -470,7 +470,7 @@ static LinkageCategory categorize(const Function *F) { return ExternalStrong; } - LLVM_UNREACHABLE("Unknown LinkageType."); + llvm_unreachable("Unknown LinkageType."); return ExternalWeak; } @@ -576,7 +576,7 @@ static bool fold(std::vector<Function *> &FnVec, unsigned i, unsigned j) { case Internal: switch (catG) { case ExternalStrong: - llvm_unreachable(); + llvm_unreachable(0); // fall-through case ExternalWeak: if (F->hasAddressTaken()) |