[Mlir-commits] [mlir] 6d2c293 - [mlir][test] Remove unused lambda capture 'this' in UtilsTest.cpp (NFC)
Jie Fu
llvmlistbot at llvm.org
Thu Apr 27 03:46:25 PDT 2023
Author: Jie Fu
Date: 2023-04-27T18:45:14+08:00
New Revision: 6d2c293bb22be9ec7bc7c10e947374f2d81501be
URL: https://github.com/llvm/llvm-project/commit/6d2c293bb22be9ec7bc7c10e947374f2d81501be
DIFF: https://github.com/llvm/llvm-project/commit/6d2c293bb22be9ec7bc7c10e947374f2d81501be.diff
LOG: [mlir][test] Remove unused lambda capture 'this' in UtilsTest.cpp (NFC)
/data/llvm-project/mlir/unittests/Analysis/Presburger/UtilsTest.cpp:39:17: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
auto merge = [this](unsigned i, unsigned j) -> bool { return true; };
^~~~
/data/llvm-project/mlir/unittests/Analysis/Presburger/UtilsTest.cpp:52:17: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
auto merge = [this](unsigned i, unsigned j) -> bool { return true; };
^~~~
2 errors generated.
Added:
Modified:
mlir/unittests/Analysis/Presburger/UtilsTest.cpp
Removed:
################################################################################
diff --git a/mlir/unittests/Analysis/Presburger/UtilsTest.cpp b/mlir/unittests/Analysis/Presburger/UtilsTest.cpp
index c4acf5874235..7c1646aa8411 100644
--- a/mlir/unittests/Analysis/Presburger/UtilsTest.cpp
+++ b/mlir/unittests/Analysis/Presburger/UtilsTest.cpp
@@ -36,7 +36,7 @@ static void checkEqual(DivisionRepr &a, DivisionRepr &b) {
}
TEST(UtilsTest, ParseAndCompareDivisionReprTest) {
- auto merge = [this](unsigned i, unsigned j) -> bool { return true; };
+ auto merge = [](unsigned i, unsigned j) -> bool { return true; };
DivisionRepr a = parseDivisionRepr(1, 1, {{MPInt(1), MPInt(2)}}, {MPInt(2)}),
b = parseDivisionRepr(1, 1, {{MPInt(1), MPInt(2)}}, {MPInt(2)}),
c = parseDivisionRepr(2, 2,
@@ -49,7 +49,7 @@ TEST(UtilsTest, ParseAndCompareDivisionReprTest) {
}
TEST(UtilsTest, DivisionReprNormalizeTest) {
- auto merge = [this](unsigned i, unsigned j) -> bool { return true; };
+ auto merge = [](unsigned i, unsigned j) -> bool { return true; };
DivisionRepr a = parseDivisionRepr(2, 1, {{MPInt(1), MPInt(2), MPInt(-1)}},
{MPInt(2)}),
b = parseDivisionRepr(2, 1, {{MPInt(16), MPInt(32), MPInt(-16)}},
More information about the Mlir-commits
mailing list