Skip to content

Commit 4c00009

Browse files
committed
Add missing designated initializers that caused compiler warnings
1 parent 487ce26 commit 4c00009

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

lib/Transform/XTenMinimizeLiveTensors.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ class XTenMinimizeLiveTensorsPass
315315
.operands = *fmOperands,
316316
.results = fmResults,
317317
.sharesResultMemory = sharesResultMemory,
318-
.consumers = {currentOpInfo.op}};
318+
.consumers = {currentOpInfo.op},
319+
.orderedProducers = {}};
319320
setOpSizes(info);
320321
const auto [opFwdIt, succeeded] =
321322
opToInfo.emplace(defOp, std::move(info));
@@ -490,7 +491,11 @@ class XTenMinimizeLiveTensorsPass
490491
assert(isa<func::ReturnOp>(returnStmt) &&
491492
"A function must terminate with a return stmt");
492493
SmallVector<Value> const retVal = returnStmt->getOperands();
493-
OpInfo fwdInfo = {.op = returnStmt, .operands = retVal, .results = {}};
494+
OpInfo fwdInfo = {.op = returnStmt,
495+
.operands = retVal,
496+
.results = {},
497+
.consumers = {},
498+
.orderedProducers = {}};
494499
auto [opFwdIt, succeeded] =
495500
opToInfo.emplace(returnStmt, std::move(fwdInfo));
496501
OpInfo const &retFwd = opFwdIt->second;

0 commit comments

Comments
 (0)