Navigation Menu

Skip to content

Commit

Permalink
8258010: Debug build failure with clang-10 due to -Wdeprecated-copy
Browse files Browse the repository at this point in the history
Reviewed-by: xliu, kvn, kbarrett
  • Loading branch information
shqking authored and Ningsheng Jian committed Jan 14, 2021
1 parent 51e14f2 commit 5513f98
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/hotspot/share/opto/node.hpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -1329,6 +1329,9 @@ class DUIterator : public DUIterator_Common {
DUIterator()
{ /*initialize to garbage*/ debug_only(_vdui = false); }

DUIterator(const DUIterator& that)
{ _idx = that._idx; debug_only(_vdui = false; reset(that)); }

void operator++(int dummy_to_specify_postfix_op)
{ _idx++; VDUI_ONLY(verify_increment()); }

Expand Down Expand Up @@ -1391,6 +1394,9 @@ class DUIterator_Fast : public DUIterator_Common {
DUIterator_Fast()
{ /*initialize to garbage*/ debug_only(_vdui = false); }

DUIterator_Fast(const DUIterator_Fast& that)
{ _outp = that._outp; debug_only(_vdui = false; reset(that)); }

void operator++(int dummy_to_specify_postfix_op)
{ _outp++; VDUI_ONLY(verify(_node, true)); }

Expand Down Expand Up @@ -1451,6 +1457,8 @@ class DUIterator_Last : private DUIterator_Fast {
DUIterator_Last() { }
// initialize to garbage

DUIterator_Last(const DUIterator_Last& that) = default;

void operator--()
{ _outp--; VDUI_ONLY(verify_step(1)); }

Expand All @@ -1463,8 +1471,7 @@ class DUIterator_Last : private DUIterator_Fast {
return _outp >= limit._outp;
}

void operator=(const DUIterator_Last& that)
{ DUIterator_Fast::operator=(that); }
DUIterator_Last& operator=(const DUIterator_Last& that) = default;
};

DUIterator_Last Node::last_outs(DUIterator_Last& imin) const {
Expand Down

1 comment on commit 5513f98

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.