Skip to content

Commit 5ad2da7

Browse files
F-Stuckmannkonstantinschwarz
authored andcommitted
[AIEX][NFC] global combiners explicit default init
1 parent 310d4fd commit 5ad2da7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

llvm/lib/Target/AIE/AIEGlobalCombiner.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ CombinerSolution CombineCandidates::getGreedySolution() const {
341341

342342
BitVector Conflicts(NumCombiner);
343343
CombinerSolution GreedySolution(NumCombiner);
344-
CombinerGain ZeroGain;
344+
CombinerGain ZeroGain{};
345345

346346
for (unsigned Idx = 0; Idx < Combiners.size(); Idx++) {
347347
const auto *Combiner = Combiners[Idx];
@@ -736,7 +736,8 @@ CombinerGain CombinerGain::operator-(const CombinerGain &Rhs) const {
736736
// -------------------------- CombinerSolution -------------------------------//
737737

738738
CombinerSolution::CombinerSolution(const unsigned NumCombiners)
739-
: Index(0), Combiners(NumCombiners), ConflictCombiners(NumCombiners) {}
739+
: Index(0), Gain({}), Combiners(NumCombiners),
740+
ConflictCombiners(NumCombiners) {}
740741

741742
CombinerSolution::CombinerSolution(
742743
const CombinerSolution &Other, const GenericCombiner *Combiner,

0 commit comments

Comments
 (0)