RFR: 8336297: C2: Fix -Wzero-as-null-pointer-constant warnings in derived Node ctors
Kim Barrett
kbarrett at openjdk.org
Mon Jul 15 15:45:55 UTC 2024
On Fri, 12 Jul 2024 21:22:50 GMT, Vladimir Kozlov <kvn 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
>
> Good.
Thanks for reviews @vnkozlov and @TheShermanTanker
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20162#issuecomment-2228808506
More information about the hotspot-compiler-dev
mailing list