[Transforms] Use default member initialization in Prefetch (NFC)

This commit is contained in:
Kazu Hirata 2022-02-13 10:34:02 -08:00
parent 0b9a610a75
commit fd3e8044cd
1 changed files with 4 additions and 5 deletions

View File

@ -236,15 +236,14 @@ struct Prefetch {
/// The address formula for this prefetch as returned by ScalarEvolution.
const SCEVAddRecExpr *LSCEVAddRec;
/// The point of insertion for the prefetch instruction.
Instruction *InsertPt;
Instruction *InsertPt = nullptr;
/// True if targeting a write memory access.
bool Writes;
bool Writes = false;
/// The (first seen) prefetched instruction.
Instruction *MemI;
Instruction *MemI = nullptr;
/// Constructor to create a new Prefetch for \p I.
Prefetch(const SCEVAddRecExpr *L, Instruction *I)
: LSCEVAddRec(L), InsertPt(nullptr), Writes(false), MemI(nullptr) {
Prefetch(const SCEVAddRecExpr *L, Instruction *I) : LSCEVAddRec(L) {
addInstruction(I);
};