Skip to content

Commit

Permalink
8278141: LIR_OpLoadKlass::_info shadows the field of the same name fr…
Browse files Browse the repository at this point in the history
…om LIR_Op

Backport-of: 0e7b6bcd8260293c3d39417f04b9b1e4409aa20a
  • Loading branch information
shipilev committed Jul 7, 2023
1 parent a34d90b commit c39f3c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hotspot/share/c1/c1_LIR.hpp
Expand Up @@ -1812,15 +1812,13 @@ class LIR_OpLoadKlass: public LIR_Op {

private:
LIR_Opr _obj;
CodeEmitInfo* _info;
public:
LIR_OpLoadKlass(LIR_Opr obj, LIR_Opr result, CodeEmitInfo* info)
: LIR_Op(lir_load_klass, result, NULL)
: LIR_Op(lir_load_klass, result, info)
, _obj(obj)
, _info(info) {}
{}

LIR_Opr obj() const { return _obj; }
CodeEmitInfo* info() const { return _info; }

virtual LIR_OpLoadKlass* as_OpLoadKlass() { return this; }
virtual void emit_code(LIR_Assembler* masm);
Expand Down

1 comment on commit c39f3c1

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