This allows it to be default constructible, which makes sense given it
ignores the operand.
using DomTree = llvm::DominatorTreeBase<Block, IsPostDom>;
public:
- DominanceInfoBase(Operation *op) {}
+ DominanceInfoBase(Operation *op = nullptr) {}
DominanceInfoBase(DominanceInfoBase &&) = default;
DominanceInfoBase &operator=(DominanceInfoBase &&) = default;
~DominanceInfoBase();
// check for any nested regions. We do this as a second pass since malformed
// CFG's can cause dominator analysis constructure to crash and we want the
// verifier to be resilient to malformed code.
- DominanceInfo theDomInfo(&op);
+ DominanceInfo theDomInfo;
domInfo = &theDomInfo;
if (failed(verifyDominanceOfContainedRegions(op)))
return failure();