Integrated: 8336297: C2: Fix -Wzero-as-null-pointer-constant warnings in derived Node ctors
Kim Barrett
kbarrett at openjdk.org
Mon Jul 15 15:45:56 UTC 2024
On Fri, 12 Jul 2024 20:24:37 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> Please review this change that removes some -Wzero-as-null-pointer-constant
> warnings (when enabled) in C2 code. The constructors for some classes derived
> from Node pass 0 as the first argument to the base class constructor. Since
> that parameter is a Node*, this triggers a warning. Changing to pass nullptr
> removes the warning.
>
> Testing: mach5 tier1
This pull request has now been integrated.
Changeset: ab27acab
Author: Kim Barrett <kbarrett at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ab27acab0b0f4a8af080275e92c2f296f5f6486b
Stats: 18 lines in 5 files changed: 0 ins; 0 del; 18 mod
8336297: C2: Fix -Wzero-as-null-pointer-constant warnings in derived Node ctors
Reviewed-by: kvn, jwaters
-------------
PR: https://git.openjdk.org/jdk/pull/20162
More information about the hotspot-compiler-dev
mailing list