Skip to content

Commit e605969

Browse files
authored
[MLIR] check resource attr of module in TEST(Bytecode, MultiModuleWithResource) (#119618)
`checkResourceAttribute` accidentally ignored its argument and only checked `roundTripModule` and not `module`
1 parent 37978c4 commit e605969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/unittests/Bytecode/BytecodeTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ TEST(Bytecode, MultiModuleWithResource) {
6969
GTEST_SKIP();
7070

7171
// Try to see if we have a valid resource in the parsed module.
72-
auto checkResourceAttribute = [&](Operation *op) {
73-
Attribute attr = roundTripModule->getDiscardableAttr("bytecode.test");
72+
auto checkResourceAttribute = [](Operation *parsedModule) {
73+
Attribute attr = parsedModule->getDiscardableAttr("bytecode.test");
7474
ASSERT_TRUE(attr);
7575
auto denseResourceAttr = dyn_cast<DenseI32ResourceElementsAttr>(attr);
7676
ASSERT_TRUE(denseResourceAttr);

0 commit comments

Comments
 (0)