8316907: Fix nonnull-compare warnings
Reviewed-by: kbarrett, jsjolen
This commit is contained in:
parent
59847926b6
commit
516cfb135f
@ -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");
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user