We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32a9a6 commit 3605a74Copy full SHA for 3605a74
mlir/lib/Transforms/Utils/DialectConversion.cpp
@@ -2471,7 +2471,7 @@ OperationConverter::finalize(ConversionPatternRewriter &rewriter) {
2471
static Operation *findLiveUserOfReplaced(
2472
Value initialValue, ConversionPatternRewriterImpl &rewriterImpl,
2473
const DenseMap<Value, SmallVector<Value>> &inverseMapping) {
2474
- SmallVector<Value> worklist(1, initialValue);
+ SmallVector<Value> worklist = {initialValue};
2475
while (!worklist.empty()) {
2476
Value value = worklist.pop_back_val();
2477
0 commit comments