# HG changeset patch # User Greg Lewis # Date 1496599909 25200 # Node ID 0c571e44ae7cc98b235cdfae411e96db19105dcb # Parent 72453885979f1951962152aad4f4eb89f7536c2f Fix compilation with Clang 4.0 Authored by: jkim@FreeBSD.org diff -r 72453885979f -r 0c571e44ae7c src/share/vm/opto/lcm.cpp --- 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