[llvm] adf2972 - Revert "Remove sign comparaison warning in APFixedPointTest.cpp"
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 14 13:42:02 PDT 2022
Author: Tyker
Date: 2022-10-14T13:40:12-07:00
New Revision: adf29726108a965d2a278e1418ba5f8aa5a03eff
URL: https://github.com/llvm/llvm-project/commit/adf29726108a965d2a278e1418ba5f8aa5a03eff
DIFF: https://github.com/llvm/llvm-project/commit/adf29726108a965d2a278e1418ba5f8aa5a03eff.diff
LOG: Revert "Remove sign comparaison warning in APFixedPointTest.cpp"
has already been fixed
This reverts commit 1a60a35769bcb2554a4527048b13cf75ad4022d6.
Added:
Modified:
llvm/unittests/ADT/APFixedPointTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/ADT/APFixedPointTest.cpp b/llvm/unittests/ADT/APFixedPointTest.cpp
index 955a7ad026e1..ecb89fbf76c8 100644
--- a/llvm/unittests/ADT/APFixedPointTest.cpp
+++ b/llvm/unittests/ADT/APFixedPointTest.cpp
@@ -279,7 +279,7 @@ void CheckIntPartMax(const FixedPointSemantics &Sema, uint64_t Expected) {
void CheckIntPartRes(const FixedPointSemantics &Sema, int64_t Representation,
uint64_t Result) {
APFixedPoint Val(Representation, Sema);
- ASSERT_EQ(Val.getIntPart().getSExtValue(), Result);
+ ASSERT_EQ(Val.getIntPart().getZExtValue(), Result) ;
}
TEST(FixedPoint, getIntPart) {
More information about the llvm-commits
mailing list