Mercurial > hg > truffle
changeset 21101:4dfcb45e7239
Relax assertion in createWriteHub.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 23 Apr 2015 18:20:21 +0200 |
parents | 8cc759c89af7 |
children | 4d25c6f34a7d |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/DefaultHotSpotLoweringProvider.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/DefaultHotSpotLoweringProvider.java Thu Apr 23 18:14:02 2015 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/DefaultHotSpotLoweringProvider.java Thu Apr 23 18:20:21 2015 +0200 @@ -475,7 +475,7 @@ private WriteNode createWriteHub(StructuredGraph graph, ValueNode object, ValueNode value) { HotSpotVMConfig config = runtime.getConfig(); LocationNode location = graph.unique(new ConstantLocationNode(HUB_WRITE_LOCATION, config.hubOffset)); - assert !object.isConstant() || object.isNullConstant(); + assert !object.isConstant() || object.asConstant().isDefaultForKind(); ValueNode writeValue = value; if (config.useCompressedClassPointers) {