Skip to content

Commit

Permalink
[Backport to 16] Fix uninitialized DominatorTree member (#2734)
Browse files Browse the repository at this point in the history
(cherry picked from commit a4010e0)
  • Loading branch information
svenvh authored Oct 7, 2024
1 parent 2aeb435 commit 3dc0eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SPIRV/SPIRVWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5063,7 +5063,7 @@ static auto stablePreDominatorTraversal(Function &F, const DominatorTree &DT) {
std::forward_iterator_tag, BasicBlock> {

// The passed DominatorTree; may be unset for end iterators.
const DominatorTree *DT;
const DominatorTree *DT = nullptr;

// The set of basic blocks already visited in this traversal.
SmallPtrSet<const BasicBlock *, 4> VisitedBBs;
Expand Down

0 comments on commit 3dc0eee

Please sign in to comment.