Skip to content

Commit

Permalink
Fix uninitialized memory bug in genLoopNest
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanradanov committed Aug 22, 2024
1 parent f2c2d5c commit 51efcce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flang/include/flang/Optimizer/Builder/HLFIRTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ hlfir::ElementalOp genElementalOp(

/// Structure to describe a loop nest.
struct LoopNest {
mlir::Operation *outerOp;
mlir::Block *body;
mlir::Operation *outerOp = nullptr;
mlir::Block *body = nullptr;
llvm::SmallVector<mlir::Value> oneBasedIndices;
};

Expand Down

0 comments on commit 51efcce

Please sign in to comment.