RFR: 8336297: C2: Fix -Wzero-as-null-pointer-constant warnings in derived Node ctors
Julian Waters
jwaters at openjdk.org
Sat Jul 13 05:12: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
Marked as reviewed by jwaters (Committer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/20162#pullrequestreview-2176166981
More information about the hotspot-compiler-dev
mailing list