Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.6.0f3
Issue ID
899356
Regression
No
[iOS] Null is not returned in UnBox() causing a compiler error in il2cpp-codegen.h
iOS: Compile error in il2cpp-codegen.h
The following code doesn't compile under iOS (XCode 8.2.1, iOS 10) unless you add the last line to return NULL:
inline void* UnBox(Il2CppCodeGenObject* obj, Il2CppClass* expectedBoxedClass)
{
NullCheck(obj);
if (obj->klass->element_class == expectedBoxedClass->element_class)
return il2cpp::vm::Object::Unbox(obj);
RaiseInvalidCastException(obj, expectedBoxedClass);
return NULL; // Must be added or compiler errors that the function can return without a value
}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
jake-ruman
Jul 11, 2017 06:56
Unity 5.6.2f1 Personal. This issue still exist