Skip to content

Commit aea0d03

Browse files
svenvhsys-ce-bb
authored andcommitted
Fix uninitialized DominatorTree member
Original commit: KhronosGroup/SPIRV-LLVM-Translator@a4010e023cdad74
1 parent 32043fd commit aea0d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5612,7 +5612,7 @@ static auto stablePreDominatorTraversal(Function &F, const DominatorTree &DT) {
56125612
std::forward_iterator_tag, BasicBlock> {
56135613

56145614
// The passed DominatorTree; may be unset for end iterators.
5615-
const DominatorTree *DT;
5615+
const DominatorTree *DT = nullptr;
56165616

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

0 commit comments

Comments
 (0)