[PATCH] D129567: [Fixed Point] Fix C++20 compilation error
Aaron Ballman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 13 05:39:13 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb65281523632: [Fixed Point] Fix C++20 compilation error (authored by antoniofrighetto, committed by aaron.ballman).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129567/new/
https://reviews.llvm.org/D129567
Files:
llvm/unittests/ADT/APFixedPointTest.cpp
Index: llvm/unittests/ADT/APFixedPointTest.cpp
===================================================================
--- llvm/unittests/ADT/APFixedPointTest.cpp
+++ llvm/unittests/ADT/APFixedPointTest.cpp
@@ -220,11 +220,13 @@
}
void CheckIntPartMin(const FixedPointSemantics &Sema, int64_t Expected) {
- ASSERT_EQ(APFixedPoint::getMin(Sema).getIntPart(), Expected);
+ EXPECT_TRUE(APSInt::compareValues(APFixedPoint::getMin(Sema).getIntPart(),
+ APSInt::get(Expected)) == 0);
}
void CheckIntPartMax(const FixedPointSemantics &Sema, uint64_t Expected) {
- ASSERT_EQ(APFixedPoint::getMax(Sema).getIntPart(), Expected);
+ EXPECT_TRUE(APSInt::compareValues(APFixedPoint::getMax(Sema).getIntPart(),
+ APSInt::getUnsigned(Expected)) == 0);
}
TEST(FixedPoint, getIntPart) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129567.444236.patch
Type: text/x-patch
Size: 851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220713/3fe27e4d/attachment.bin>
More information about the llvm-commits
mailing list