Mercurial > hg > graal-compiler
changeset 12416:9ad59f7fd57e
ConstantNode methods should not throw InternalError
author | twisti |
---|---|
date | Mon, 14 Oct 2013 19:46:29 -0700 |
parents | 083e90f11c93 |
children | 0b71e8b6418c |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ConstantNode.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ConstantNode.java Tue Oct 15 02:07:33 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ConstantNode.java Mon Oct 14 19:46:29 2013 -0700 @@ -199,7 +199,7 @@ case Long: return ConstantNode.forLong(value, graph); default: - throw new InternalError("Should not reach here"); + throw GraalInternalError.shouldNotReachHere("unknown kind " + kind); } } @@ -210,7 +210,7 @@ case Double: return ConstantNode.forDouble(value, graph); default: - throw new InternalError("Should not reach here"); + throw GraalInternalError.shouldNotReachHere("unknown kind " + kind); } }