8316907: Fix nonnull-compare warnings

Reviewed-by: kbarrett, jsjolen
This commit is contained in:
Daniel Jeliński 2023-10-02 10:01:44 +00:00
parent 59847926b6
commit 516cfb135f
2 changed files with 0 additions and 6 deletions

View File

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

View File

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