[Mlir-commits] [mlir] f3e1dcc - [MLIR][Presburger] Silence warnings in GCC (NFC)

Lorenzo Chelini llvmlistbot at llvm.org
Tue Mar 8 03:39:08 PST 2022


Author: Lorenzo Chelini
Date: 2022-03-08T12:38:59+01:00
New Revision: f3e1dcc5df886642ea7ec67d3d508dc8db063e5d

URL: https://github.com/llvm/llvm-project/commit/f3e1dcc5df886642ea7ec67d3d508dc8db063e5d
DIFF: https://github.com/llvm/llvm-project/commit/f3e1dcc5df886642ea7ec67d3d508dc8db063e5d.diff

LOG: [MLIR][Presburger] Silence warnings in GCC (NFC)

Reviewed By: arjunp

Differential Revision: https://reviews.llvm.org/D121205

Added: 
    

Modified: 
    mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp b/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
index f20d22b8b27a6..0d4c92d690884 100644
--- a/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
+++ b/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
@@ -81,10 +81,12 @@ static void checkSample(bool hasSample, const IntegerPolyhedron &poly,
       EXPECT_TRUE(poly.containsPoint(*maybeSample));
 
       ASSERT_FALSE(maybeLexMin.isEmpty());
-      if (maybeLexMin.isUnbounded())
+      if (maybeLexMin.isUnbounded()) {
         EXPECT_TRUE(Simplex(poly).isUnbounded());
-      if (maybeLexMin.isBounded())
+      }
+      if (maybeLexMin.isBounded()) {
         EXPECT_TRUE(poly.containsPoint(*maybeLexMin));
+      }
     }
     break;
   case TestFunction::Empty:


        


More information about the Mlir-commits mailing list