Просмотр исходного кода

[cxx2a] Fix warning triggered by r343285

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343369 91177308-0d34-0410-b5e6-96231b3b80d8
Vitaly Buka 7 лет назад
Родитель
Сommit
05252670a6

+ 0 - 2
include/llvm/DebugInfo/PDB/Native/GlobalsStream.h

@@ -30,8 +30,6 @@ class GSIHashIterator
           GSIHashIterator, FixedStreamArrayIterator<PSHashRecord>,
           GSIHashIterator, FixedStreamArrayIterator<PSHashRecord>,
           std::random_access_iterator_tag, const uint32_t> {
           std::random_access_iterator_tag, const uint32_t> {
 public:
 public:
-  GSIHashIterator() = default;
-
   template <typename T>
   template <typename T>
   GSIHashIterator(T &&v)
   GSIHashIterator(T &&v)
       : GSIHashIterator::iterator_adaptor_base(std::forward<T &&>(v)) {}
       : GSIHashIterator::iterator_adaptor_base(std::forward<T &&>(v)) {}

+ 1 - 1
include/llvm/DebugInfo/PDB/Native/ModuleDebugStream.h

@@ -49,7 +49,7 @@ public:
   BinarySubstreamRef getC13LinesSubstream() const;
   BinarySubstreamRef getC13LinesSubstream() const;
   BinarySubstreamRef getGlobalRefsSubstream() const;
   BinarySubstreamRef getGlobalRefsSubstream() const;
 
 
-  ModuleDebugStreamRef &operator=(ModuleDebugStreamRef &&Other) = default;
+  ModuleDebugStreamRef &operator=(ModuleDebugStreamRef &&Other) = delete;
 
 
   iterator_range<DebugSubsectionIterator> subsections() const;
   iterator_range<DebugSubsectionIterator> subsections() const;
   codeview::DebugSubsectionArray getSubsectionsArray() const {
   codeview::DebugSubsectionArray getSubsectionsArray() const {

+ 1 - 1
include/llvm/ExecutionEngine/Orc/Core.h

@@ -146,7 +146,7 @@ class MaterializationResponsibility {
 public:
 public:
   MaterializationResponsibility(MaterializationResponsibility &&) = default;
   MaterializationResponsibility(MaterializationResponsibility &&) = default;
   MaterializationResponsibility &
   MaterializationResponsibility &
-  operator=(MaterializationResponsibility &&) = default;
+  operator=(MaterializationResponsibility &&) = delete;
 
 
   /// Destruct a MaterializationResponsibility instance. In debug mode
   /// Destruct a MaterializationResponsibility instance. In debug mode
   ///        this asserts that all symbols being tracked have been either
   ///        this asserts that all symbols being tracked have been either

+ 1 - 2
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h

@@ -70,8 +70,7 @@ public:
     RemoteRTDyldMemoryManager &
     RemoteRTDyldMemoryManager &
     operator=(const RemoteRTDyldMemoryManager &) = delete;
     operator=(const RemoteRTDyldMemoryManager &) = delete;
     RemoteRTDyldMemoryManager(RemoteRTDyldMemoryManager &&) = default;
     RemoteRTDyldMemoryManager(RemoteRTDyldMemoryManager &&) = default;
-    RemoteRTDyldMemoryManager &
-    operator=(RemoteRTDyldMemoryManager &&) = default;
+    RemoteRTDyldMemoryManager &operator=(RemoteRTDyldMemoryManager &&) = delete;
 
 
     uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment,
     uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment,
                                  unsigned SectionID,
                                  unsigned SectionID,

+ 0 - 2
include/llvm/ProfileData/Coverage/CoverageMapping.h

@@ -630,8 +630,6 @@ public:
     this->operator++();
     this->operator++();
   }
   }
 
 
-  LineCoverageIterator &operator=(const LineCoverageIterator &R) = default;
-
   bool operator==(const LineCoverageIterator &R) const {
   bool operator==(const LineCoverageIterator &R) const {
     return &CD == &R.CD && Next == R.Next && Ended == R.Ended;
     return &CD == &R.CD && Next == R.Next && Ended == R.Ended;
   }
   }

+ 0 - 1
lib/Analysis/MemorySSA.cpp

@@ -125,7 +125,6 @@ class MemoryLocOrCall {
 public:
 public:
   bool IsCall = false;
   bool IsCall = false;
 
 
-  MemoryLocOrCall() = default;
   MemoryLocOrCall(MemoryUseOrDef *MUD)
   MemoryLocOrCall(MemoryUseOrDef *MUD)
       : MemoryLocOrCall(MUD->getMemoryInst()) {}
       : MemoryLocOrCall(MUD->getMemoryInst()) {}
   MemoryLocOrCall(const MemoryUseOrDef *MUD)
   MemoryLocOrCall(const MemoryUseOrDef *MUD)

+ 0 - 1
lib/Target/AMDGPU/AMDGPULibFunc.cpp

@@ -90,7 +90,6 @@ class UnmangledFuncInfo {
 
 
 public:
 public:
   using ID = AMDGPULibFunc::EFuncId;
   using ID = AMDGPULibFunc::EFuncId;
-  UnmangledFuncInfo() = default;
   UnmangledFuncInfo(StringRef _Name, unsigned _NumArgs)
   UnmangledFuncInfo(StringRef _Name, unsigned _NumArgs)
       : Name(_Name), NumArgs(_NumArgs) {}
       : Name(_Name), NumArgs(_NumArgs) {}
   // Get index to Table by function name.
   // Get index to Table by function name.

+ 3 - 3
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp

@@ -231,17 +231,17 @@ struct TransformedFunction {
   TransformedFunction& operator=(TransformedFunction&&) = default;
   TransformedFunction& operator=(TransformedFunction&&) = default;
 
 
   /// Type of the function before the transformation.
   /// Type of the function before the transformation.
-  FunctionType* const OriginalType;
+  FunctionType *OriginalType;
 
 
   /// Type of the function after the transformation.
   /// Type of the function after the transformation.
-  FunctionType* const TransformedType;
+  FunctionType *TransformedType;
 
 
   /// Transforming a function may change the position of arguments.  This
   /// Transforming a function may change the position of arguments.  This
   /// member records the mapping from each argument's old position to its new
   /// member records the mapping from each argument's old position to its new
   /// position.  Argument positions are zero-indexed.  If the transformation
   /// position.  Argument positions are zero-indexed.  If the transformation
   /// from F to F' made the first argument of F into the third argument of F',
   /// from F to F' made the first argument of F into the third argument of F',
   /// then ArgumentIndexMapping[0] will equal 2.
   /// then ArgumentIndexMapping[0] will equal 2.
-  const std::vector<unsigned> ArgumentIndexMapping;
+  std::vector<unsigned> ArgumentIndexMapping;
 };
 };
 
 
 /// Given function attributes from a call site for the original function,
 /// Given function attributes from a call site for the original function,