From 9b3b0fe763fef29df9ba62cb6846c95ebc84f2c9 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 26 Jun 2018 09:31:18 +0000 Subject: Fix MSVC "not all control paths return a value" warnings. NFCI. llvm-svn: 335584 --- llvm/lib/Support/APInt.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support/APInt.cpp') diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 8be903f2ccb..60372736d78 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -2674,6 +2674,7 @@ APInt llvm::APIntOps::RoundingUDiv(const APInt &A, const APInt &B, return Quo + 1; } } + llvm_unreachable("Unknown APInt::Rounding enum"); } APInt llvm::APIntOps::RoundingSDiv(const APInt &A, const APInt &B, @@ -2703,4 +2704,5 @@ APInt llvm::APIntOps::RoundingSDiv(const APInt &A, const APInt &B, case APInt::Rounding::TOWARD_ZERO: return A.sdiv(B); } + llvm_unreachable("Unknown APInt::Rounding enum"); } -- cgit v1.2.3