diff --git a/llvm/include/llvm/CodeGen/MachinePostDominators.h b/llvm/include/llvm/CodeGen/MachinePostDominators.h --- a/llvm/include/llvm/CodeGen/MachinePostDominators.h +++ b/llvm/include/llvm/CodeGen/MachinePostDominators.h @@ -33,6 +33,11 @@ MachinePostDominatorTree(); + PostDomTreeT &getBase() { + if (!DT) DT.reset(new PostDomTreeT()); + return *DT; + } + FunctionPass *createMachinePostDominatorTreePass(); const SmallVectorImpl &getRoots() const {