Skip to content

Commit

Permalink
[mlir] Fix ambiguity when building with Clang 14.0.6
Browse files Browse the repository at this point in the history
Differential revision: https://reviews.llvm.org/D134219
  • Loading branch information
aganea committed Oct 5, 2022
1 parent 1c25ce1 commit 941f71a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
Expand Up @@ -1479,9 +1479,7 @@ TEST(IntegerPolyhedronTest, containsPointNoLocal) {
IntegerPolyhedron poly3 =
parseIntegerPolyhedron("(x, y) : (2*x - y >= 0, y - 3*x >= 0)");

// -0 instead of 0 to prevent unwanted conversion to pointer types,
// which would lead to ambiguity in overload resolution.
EXPECT_TRUE(poly3.containsPointNoLocal({-0, 0}));
EXPECT_TRUE(poly3.containsPointNoLocal(ArrayRef<int64_t>({0, 0})));
EXPECT_FALSE(poly3.containsPointNoLocal({1, 0}));
}

Expand Down

0 comments on commit 941f71a

Please sign in to comment.