Skip to content

Commit ef5702e

Browse files
author
SendaoYan
committed
8316907: Fix nonnull-compare warnings
Backport-of: 516cfb135f7e5fefaf6e6f2928f6ecb88806f1ef
1 parent 50fc231 commit ef5702e

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/hotspot/share/adlc/output_c.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,6 @@ void ArchDesc::build_pipe_classes(FILE *fp_cpp) {
726726
fprintf(fp_cpp, " }\n");
727727
fprintf(fp_cpp, "#endif\n\n");
728728
#endif
729-
fprintf(fp_cpp, " assert(this, \"null pipeline info\");\n");
730729
fprintf(fp_cpp, " assert(pred, \"null predecessor pipline info\");\n\n");
731730
fprintf(fp_cpp, " if (pred->hasFixedLatency())\n return (pred->fixedLatency());\n\n");
732731
fprintf(fp_cpp, " // If this is not an operand, then assume a dependence with 0 latency\n");

src/hotspot/share/asm/codeBuffer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,11 +1059,6 @@ void CodeSection::print(const char* name) {
10591059
}
10601060

10611061
void CodeBuffer::print() {
1062-
if (this == nullptr) {
1063-
tty->print_cr("null CodeBuffer pointer");
1064-
return;
1065-
}
1066-
10671062
tty->print_cr("CodeBuffer:");
10681063
for (int n = 0; n < (int)SECT_LIMIT; n++) {
10691064
// print each section

0 commit comments

Comments
 (0)