Skip to content

Commit

Permalink
[DomTree] Remove dead code.[NFC]
Browse files Browse the repository at this point in the history
  • Loading branch information
alinas committed Jul 28, 2020
1 parent 8120eba commit 18c725e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions llvm/include/llvm/Support/GenericDomTreeConstruction.h
Expand Up @@ -92,13 +92,9 @@ struct SemiNCAInfo {

BatchUpdateInfo *BatchUpdates;
using BatchUpdatePtr = BatchUpdateInfo *;
std::unique_ptr<GraphDiffT> EmptyGD;

// If BUI is a nullptr, then there's no batch update in progress.
SemiNCAInfo(BatchUpdatePtr BUI) : BatchUpdates(BUI) {
if (!BatchUpdates)
EmptyGD = std::make_unique<GraphDiffT>();
}
SemiNCAInfo(BatchUpdatePtr BUI) : BatchUpdates(BUI) {}

void clear() {
NumToNode = {nullptr}; // Restore to initial state with a dummy start node.
Expand Down

0 comments on commit 18c725e

Please sign in to comment.