[llvm] e9739f1 - Revert "[DebugInfo][InstrRef][NFC] Add a missing assignment operator"

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 31 08:15:30 PST 2022


Author: Jeremy Morse
Date: 2022-01-31T16:15:21Z
New Revision: e9739f116dbfc39bc754353ba37bc8c4004728ed

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

LOG: Revert "[DebugInfo][InstrRef][NFC] Add a missing assignment operator"

This reverts commit f18429372f12b571aef539855c4dbef23a96f494.

Bitten by -Werror,-Wdeprecated-copy on a buildbot, alas!

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
index 6c0d14e1470ce..ed0c55a4cb1eb 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
@@ -132,11 +132,6 @@ class ValueIDNum {
     u.s = {Block, Inst, Loc.asU64()};
   }
 
-  ValueIDNum &operator=(const ValueIDNum &Other) {
-    u.Value = Other.u.Value;
-    return *this;
-  }
-
   uint64_t getBlock() const { return u.s.BlockNo; }
   uint64_t getInst() const { return u.s.InstNo; }
   uint64_t getLoc() const { return u.s.LocNo; }


        


More information about the llvm-commits mailing list