changeset 58904:1783b322df29

8242357: [JVMCI] Incorrect use of JVMCI_CHECK_ on return statement Reviewed-by: dholmes, xliu
author kvn
date Mon, 20 Apr 2020 13:13:56 -0700
parents f499459eda7a
children 920562fbf6b9
files src/hotspot/share/jvmci/jvmciEnv.hpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/jvmci/jvmciEnv.hpp	Mon Apr 20 10:38:16 2020 -0700
+++ b/src/hotspot/share/jvmci/jvmciEnv.hpp	Mon Apr 20 13:13:56 2020 -0700
@@ -262,7 +262,8 @@
   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);