[llvm] r231141 - CFG::SuccessorIterator::SuccessorProxy:: Expliictly default copy construction as it is deprecated in C++11 in the presence of explicit copy assignment.

David Blaikie dblaikie at gmail.com
Tue Mar 3 13:44:06 PST 2015


Author: dblaikie
Date: Tue Mar  3 15:44:06 2015
New Revision: 231141

URL: http://llvm.org/viewvc/llvm-project?rev=231141&view=rev
Log:
CFG::SuccessorIterator::SuccessorProxy:: Expliictly default copy construction as it is deprecated in C++11 in the presence of explicit copy assignment.

See r231099 for similar issues & details in [Small]BitVector.

Modified:
    llvm/trunk/include/llvm/IR/CFG.h

Modified: llvm/trunk/include/llvm/IR/CFG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/CFG.h?rev=231141&r1=231140&r2=231141&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/CFG.h (original)
+++ llvm/trunk/include/llvm/IR/CFG.h Tue Mar  3 15:44:06 2015
@@ -136,6 +136,8 @@ private:
   public:
     explicit SuccessorProxy(const Self &it) : it(it) {}
 
+    SuccessorProxy(const SuccessorProxy&) = default;
+
     SuccessorProxy &operator=(SuccessorProxy r) {
       *this = reference(r);
       return *this;





More information about the llvm-commits mailing list