8242357: [JVMCI] Incorrect use of JVMCI_CHECK_ on return statement

Reviewed-by: dholmes, xliu
This commit is contained in:
Vladimir Kozlov 2020-04-20 13:13:56 -07:00
parent bc3ed7bdb4
commit 8da1ee7833

View File

@ -262,7 +262,8 @@ public:
char* as_utf8_string(JVMCIObject str, char* buf, int buflen);
JVMCIObject create_string(Symbol* str, JVMCI_TRAPS) {
return create_string(str->as_C_string(), JVMCI_CHECK_(JVMCIObject()));
JVMCIObject s = create_string(str->as_C_string(), JVMCI_CHECK_(JVMCIObject()));
return s;
}
JVMCIObject create_string(const char* str, JVMCI_TRAPS);