Mercurial > hg > truffle
diff src/share/vm/graal/graalCompilerToVM.cpp @ 6325:2691e320d37c
Handle void type when resolving a signature type.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 06 Sep 2012 19:21:37 +0200 |
parents | dddcdb7ae209 |
children | 908e40db1d94 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompilerToVM.cpp Thu Sep 06 19:20:28 2012 +0200 +++ b/src/share/vm/graal/graalCompilerToVM.cpp Thu Sep 06 19:21:37 2012 +0200 @@ -291,6 +291,8 @@ result = VMToCompiler::createPrimitiveJavaType((int) T_DOUBLE, THREAD); } else if (nameSymbol == vmSymbols::float_signature()) { result = VMToCompiler::createPrimitiveJavaType((int) T_FLOAT, THREAD); + } else if (nameSymbol == vmSymbols::void_signature()) { + result = VMToCompiler::createPrimitiveJavaType((int) T_VOID, THREAD); } else { klassOop resolved_type = NULL; // if the name isn't in the symbol table then the class isn't loaded anyway...