Mercurial > hg > openjdk > bsd-port > hotspot
changeset 6007:0c571e44ae7c
Fix compilation with Clang 4.0
Authored by: jkim@FreeBSD.org
author | Greg Lewis <glewis@eyesbeyond.com> |
---|---|
date | Sun, 04 Jun 2017 11:11:49 -0700 |
parents | 72453885979f |
children | 660752df7b73 |
files | src/share/vm/opto/lcm.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/opto/lcm.cpp Sun May 28 21:31:42 2017 -0700 +++ b/src/share/vm/opto/lcm.cpp Sun Jun 04 11:11:49 2017 -0700 @@ -57,7 +57,7 @@ // Check whether val is not-null-decoded compressed oop, // i.e. will grab into the base of the heap if it represents NULL. static bool accesses_heap_base_zone(Node *val) { - if (Universe::narrow_oop_base() > 0) { // Implies UseCompressedOops. + if (Universe::narrow_oop_base() != NULL) { // Implies UseCompressedOops. if (val && val->is_Mach()) { if (val->as_Mach()->ideal_Opcode() == Op_DecodeN) { // This assumes all Decodes with TypePtr::NotNull are matched to nodes that