diff --git a/lib/SPIRV/SPIRVWriter.cpp b/lib/SPIRV/SPIRVWriter.cpp index 76d7f380f..167b81bef 100644 --- a/lib/SPIRV/SPIRVWriter.cpp +++ b/lib/SPIRV/SPIRVWriter.cpp @@ -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 VisitedBBs;