Fix WASM32/Zephyr build.

This commit is contained in:
Nikolay Igotti
2018-03-28 20:36:18 +03:00
parent c76c39fafd
commit cca9280093
+1 -1
View File
@@ -1099,7 +1099,7 @@ OBJ_GETTER(InitInstance,
OBJ_GETTER(InitSharedInstance,
ObjHeader** location, ObjHeader** localLocation, const TypeInfo* type_info, void (*ctor)(ObjHeader*)) {
#if KONAN_NO_THREADS
return InitInstance(location, type_info, ctor);
RETURN_RESULT_OF(InitInstance, location, type_info, ctor);
#else
ObjHeader* value = *localLocation;
if (value != nullptr) RETURN_OBJ(value);