From 941f71adf68e969b3832313fb9fe463c38377695 Mon Sep 17 00:00:00 2001 From: Alexandre Ganea Date: Fri, 30 Sep 2022 08:22:54 -0400 Subject: [PATCH] [mlir] Fix ambiguity when building with Clang 14.0.6 Differential revision: https://reviews.llvm.org/D134219 --- mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp b/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp index 1be5a3f..b38f137 100644 --- a/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp +++ b/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp @@ -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({0, 0}))); EXPECT_FALSE(poly3.containsPointNoLocal({1, 0})); } -- 2.7.4