From: Craig Topper Date: Tue, 13 Jun 2017 17:58:59 +0000 (+0000) Subject: [IR] Remove a couple explicitly deleted default constructors on classes that have... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b25e880dd0b5e1c00785e56ac39c4abc612faa63;p=llvm [IR] Remove a couple explicitly deleted default constructors on classes that have a non-default constructor. NFC The non-default constructor will implicitly delete the default constructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305311 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Constants.h b/include/llvm/IR/Constants.h index 2cac965621f..003a6d5d075 100644 --- a/include/llvm/IR/Constants.h +++ b/include/llvm/IR/Constants.h @@ -68,7 +68,6 @@ protected: void *operator new(size_t s) { return User::operator new(s, 0); } public: - ConstantData() = delete; ConstantData(const ConstantData &) = delete; /// Methods to support type inquiry through isa, cast, and dyn_cast. diff --git a/include/llvm/IR/InstrTypes.h b/include/llvm/IR/InstrTypes.h index dd9d75acef7..b3c6644c7e8 100644 --- a/include/llvm/IR/InstrTypes.h +++ b/include/llvm/IR/InstrTypes.h @@ -903,8 +903,6 @@ protected: BasicBlock *InsertAtEnd); public: - CmpInst() = delete; - // allocate space for exactly two operands void *operator new(size_t s) { return User::operator new(s, 2);