[llvm] r305311 - [IR] Remove a couple explicitly deleted default constructors on classes that have a non-default constructor. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 13 10:59:00 PDT 2017
Author: ctopper
Date: Tue Jun 13 12:58:59 2017
New Revision: 305311
URL: http://llvm.org/viewvc/llvm-project?rev=305311&view=rev
Log:
[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.
Modified:
llvm/trunk/include/llvm/IR/Constants.h
llvm/trunk/include/llvm/IR/InstrTypes.h
Modified: llvm/trunk/include/llvm/IR/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Constants.h?rev=305311&r1=305310&r2=305311&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Constants.h (original)
+++ llvm/trunk/include/llvm/IR/Constants.h Tue Jun 13 12:58:59 2017
@@ -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.
Modified: llvm/trunk/include/llvm/IR/InstrTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/InstrTypes.h?rev=305311&r1=305310&r2=305311&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/InstrTypes.h (original)
+++ llvm/trunk/include/llvm/IR/InstrTypes.h Tue Jun 13 12:58:59 2017
@@ -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);
More information about the llvm-commits
mailing list