From 18c725e735b1bfb756c2320d812bb095f2c98574 Mon Sep 17 00:00:00 2001 From: Alina Sbirlea Date: Mon, 27 Jul 2020 16:41:55 -0700 Subject: [PATCH] [DomTree] Remove dead code.[NFC] --- llvm/include/llvm/Support/GenericDomTreeConstruction.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/llvm/include/llvm/Support/GenericDomTreeConstruction.h b/llvm/include/llvm/Support/GenericDomTreeConstruction.h index 709276ab7a29..5a1f03c879db 100644 --- a/llvm/include/llvm/Support/GenericDomTreeConstruction.h +++ b/llvm/include/llvm/Support/GenericDomTreeConstruction.h @@ -92,13 +92,9 @@ struct SemiNCAInfo { BatchUpdateInfo *BatchUpdates; using BatchUpdatePtr = BatchUpdateInfo *; - std::unique_ptr 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(); - } + SemiNCAInfo(BatchUpdatePtr BUI) : BatchUpdates(BUI) {} void clear() { NumToNode = {nullptr}; // Restore to initial state with a dummy start node.