Skip to content
Permalink
Browse files
8258010: Debug build failure with clang-10 due to -Wdeprecated-copy
Reviewed-by: xliu, kvn, kbarrett
  • Loading branch information
shqking authored and Ningsheng Jian committed Jan 14, 2021
1 parent 51e14f2 commit 5513f9893bdfc4bb225a30524ac45e0b6ad2fc95
Showing with 10 additions and 3 deletions.
  1. +10 −3 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
@@ -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()); }

@@ -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)); }

@@ -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)); }

@@ -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 {

1 comment on commit 5513f98

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 5513f98 Jan 14, 2021

Please sign in to comment.