[llvm] r335584 - Fix MSVC "not all control paths return a value" warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 26 02:31:18 PDT 2018
Author: rksimon
Date: Tue Jun 26 02:31:18 2018
New Revision: 335584
URL: http://llvm.org/viewvc/llvm-project?rev=335584&view=rev
Log:
Fix MSVC "not all control paths return a value" warnings. NFCI.
Modified:
llvm/trunk/lib/Support/APInt.cpp
Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=335584&r1=335583&r2=335584&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Tue Jun 26 02:31:18 2018
@@ -2674,6 +2674,7 @@ APInt llvm::APIntOps::RoundingUDiv(const
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
case APInt::Rounding::TOWARD_ZERO:
return A.sdiv(B);
}
+ llvm_unreachable("Unknown APInt::Rounding enum");
}
More information about the llvm-commits
mailing list