[llvm] 60bcec4 - [LiveDebugValues] Delete unneeded copy constructor after D83047

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 22 10:56:06 PDT 2020


Author: Fangrui Song
Date: 2020-08-22T10:55:28-07:00
New Revision: 60bcec4eead73996877c389d439af337f186c3ae

URL: https://github.com/llvm/llvm-project/commit/60bcec4eead73996877c389d439af337f186c3ae
DIFF: https://github.com/llvm/llvm-project/commit/60bcec4eead73996877c389d439af337f186c3ae.diff

LOG: [LiveDebugValues] Delete unneeded copy constructor after D83047

It will suppress the implicitly-declared copy assignment operator in C++20.

Added: 
    

Modified: 
    llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index 5818ecdf24da..25f474ca4477 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -363,9 +363,6 @@ class DbgValueProperties {
   DbgValueProperties(const DIExpression *DIExpr, bool Indirect)
       : DIExpr(DIExpr), Indirect(Indirect) {}
 
-  DbgValueProperties(const DbgValueProperties &Cpy)
-      : DIExpr(Cpy.DIExpr), Indirect(Cpy.Indirect) {}
-
   /// Extract properties from an existing DBG_VALUE instruction.
   DbgValueProperties(const MachineInstr &MI) {
     assert(MI.isDebugValue());


        


More information about the llvm-commits mailing list