Mercurial > hg > truffle
changeset 15816:e284afdafe7b
Allow using StampFactory.forConstant(Constant, MetaAccessProvider) for primitive constants.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 20 May 2014 16:47:19 +0200 |
parents | b5a993ed67ea |
children | 8b24f4684aa0 |
files | graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/type/StampFactory.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/type/StampFactory.java Tue May 20 15:46:02 2014 +0200 +++ b/graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/type/StampFactory.java Tue May 20 16:47:19 2014 +0200 @@ -200,7 +200,7 @@ ResolvedJavaType type = value.isNull() ? null : metaAccess.lookupJavaType(value); return new ObjectStamp(type, value.isNonNull(), value.isNonNull(), value.isNull()); } else { - throw new GraalInternalError(Kind.Object + " expected, actual kind: %s", value.getKind()); + return forConstant(value); } }