Skip to content

Commit

Permalink
8277860: PPC: Remove duplicate info != NULL check
Browse files Browse the repository at this point in the history
Reviewed-by: chagedorn, mdoerr
  • Loading branch information
rkennke committed Nov 26, 2021
1 parent 040b2c5 commit ce0234b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp
Expand Up @@ -2733,12 +2733,10 @@ void LIR_Assembler::emit_load_klass(LIR_OpLoadKlass* op) {

CodeEmitInfo* info = op->info();
if (info != NULL) {
if (info != NULL) {
if (!os::zero_page_read_protected() || !ImplicitNullChecks) {
explicit_null_check(obj, info);
} else {
add_debug_info_for_null_check_here(info);
}
if (!os::zero_page_read_protected() || !ImplicitNullChecks) {
explicit_null_check(obj, info);
} else {
add_debug_info_for_null_check_here(info);
}
}

Expand Down

1 comment on commit ce0234b

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