Skip to content

Commit b37194f

Browse files
committed
Fix uninitialized memory bug in genLoopNest
1 parent a9f4b77 commit b37194f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/include/flang/Optimizer/Builder/HLFIRTools.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ hlfir::ElementalOp genElementalOp(
357357

358358
/// Structure to describe a loop nest.
359359
struct LoopNest {
360-
mlir::Operation *outerOp;
361-
mlir::Block *body;
360+
mlir::Operation *outerOp = nullptr;
361+
mlir::Block *body = nullptr;
362362
llvm::SmallVector<mlir::Value> oneBasedIndices;
363363
};
364364

0 commit comments

Comments
 (0)