Mercurial > hg > truffle
changeset 20925:cea0b7285190
Use correctly typed NULL constant in canonicalization of LoadMethodNode.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 14 Apr 2015 12:08:41 +0200 |
parents | 03520505cbf1 |
children | 35e1b66f2810 c617a74a9eab fb96fbd5acbd |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/LoadMethodNode.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/LoadMethodNode.java Tue Apr 14 11:59:07 2015 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/LoadMethodNode.java Tue Apr 14 12:08:41 2015 +0200 @@ -101,7 +101,7 @@ * This really represent a misuse of LoadMethod since we're loading from a class which * isn't known to implement the original method but for now at least fold it away. */ - return ConstantNode.forConstant(JavaConstant.NULL_POINTER, null); + return ConstantNode.forConstant(stamp(), JavaConstant.NULL_POINTER, null); } else { return ConstantNode.forConstant(stamp(), newMethod.getEncoding(), tool.getMetaAccess()); }