Skip to content

Commit 5066551

Browse files
committed
[mlir] Apply ClangTidy fixes (NFC)
Remove redundant returns at end of function.
1 parent 2647439 commit 5066551

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

mlir/test/lib/IR/TestBytecodeCallbacks.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ struct TestBytecodeCallbackPass
108108
// Print the module to the output stream, so that we can filecheck the
109109
// result.
110110
newModuleOp->print(llvm::outs());
111-
return;
112111
}
113112

114113
// Test0: let's assume that versions older than 2.0 were relying on a special
@@ -184,7 +183,6 @@ struct TestBytecodeCallbackPass
184183
return success();
185184
});
186185
doRoundtripWithConfigs(op, writeConfig, parseConfig);
187-
return;
188186
}
189187

190188
// Test1: When writing bytecode, we override the encoding of TestI32Type with
@@ -216,7 +214,6 @@ struct TestBytecodeCallbackPass
216214
// We natively parse the attribute as a builtin, so no callback needed.
217215
ParserConfig parseConfig(op->getContext(), /*verifyAfterParse=*/true);
218216
doRoundtripWithConfigs(op, writeConfig, parseConfig);
219-
return;
220217
}
221218

222219
// Test2: When writing bytecode, we write standard builtin IntegerTypes. At
@@ -244,7 +241,6 @@ struct TestBytecodeCallbackPass
244241
return success();
245242
});
246243
doRoundtripWithConfigs(op, writeConfig, parseConfig);
247-
return;
248244
}
249245

250246
// Test3: When writing bytecode, we override the encoding of
@@ -280,7 +276,6 @@ struct TestBytecodeCallbackPass
280276
// We natively parse the attribute as a builtin, so no callback needed.
281277
ParserConfig parseConfig(op->getContext(), /*verifyAfterParse=*/false);
282278
doRoundtripWithConfigs(op, writeConfig, parseConfig);
283-
return;
284279
}
285280

286281
// Test4: When writing bytecode, we write standard builtin
@@ -318,7 +313,6 @@ struct TestBytecodeCallbackPass
318313
return success();
319314
});
320315
doRoundtripWithConfigs(op, writeConfig, parseConfig);
321-
return;
322316
}
323317

324318
// Test5: When writing bytecode, we want TestDialect to use nothing else than
@@ -360,7 +354,6 @@ struct TestBytecodeCallbackPass
360354
return success();
361355
});
362356
doRoundtripWithConfigs(op, writeConfig, parseConfig);
363-
return;
364357
}
365358
};
366359
} // namespace

0 commit comments

Comments
 (0)