Skip to content

Commit

Permalink
8316907: Fix nonnull-compare warnings
Browse files Browse the repository at this point in the history
Reviewed-by: kbarrett, jsjolen
  • Loading branch information
djelinski committed Oct 2, 2023
1 parent 5984792 commit 516cfb1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/hotspot/share/adlc/output_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,6 @@ void ArchDesc::build_pipe_classes(FILE *fp_cpp) {
fprintf(fp_cpp, " }\n");
fprintf(fp_cpp, "#endif\n\n");
#endif
fprintf(fp_cpp, " assert(this, \"null pipeline info\");\n");
fprintf(fp_cpp, " assert(pred, \"null predecessor pipline info\");\n\n");
fprintf(fp_cpp, " if (pred->hasFixedLatency())\n return (pred->fixedLatency());\n\n");
fprintf(fp_cpp, " // If this is not an operand, then assume a dependence with 0 latency\n");
Expand Down
5 changes: 0 additions & 5 deletions src/hotspot/share/asm/codeBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1061,11 +1061,6 @@ void CodeSection::print(const char* name) {
}

void CodeBuffer::print() {
if (this == nullptr) {
tty->print_cr("null CodeBuffer pointer");
return;
}

tty->print_cr("CodeBuffer:");
for (int n = 0; n < (int)SECT_LIMIT; n++) {
// print each section
Expand Down

1 comment on commit 516cfb1

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