Compile out objc_msgSend_stret on 64 bit machines

Summary: objc_msgSend_stret isn't available when building for 64 bit devices so this line breaks. objc_msgSend is the correct function to call in 64 bit, but Flipper doesn't run for devices so its fine either way.

Reviewed By: jasonhotsauce

Differential Revision: D16502377

fbshipit-source-id: cfc20880bcccd086dc34fad74a6eef2c9a17cb17
This commit is contained in:
Cory Wilhite
2019-07-25 16:38:46 -07:00
committed by Facebook Github Bot
parent 594565de31
commit aa470a9aef

View File

@@ -245,7 +245,11 @@ static CK::StaticMutex _mutex = CK_MUTEX_INITIALIZER;
- (std::vector<CKComponent *>)sonar_renderChildren:(id)state { - (std::vector<CKComponent *>)sonar_renderChildren:(id)state {
[self setMutableDataFromStorage]; [self setMutableDataFromStorage];
SEL resultSelector = NSSelectorFromString([[self class] swizzledMethodNameForRender]); SEL resultSelector = NSSelectorFromString([[self class] swizzledMethodNameForRender]);
#if defined(__aarch64__)
return ((std::vector<CKComponent *>(*)(CKComponent *, SEL, id))objc_msgSend)(self, resultSelector, state);
#else
return ((std::vector<CKComponent *>(*)(CKComponent *, SEL, id))objc_msgSend_stret)(self, resultSelector, state); return ((std::vector<CKComponent *>(*)(CKComponent *, SEL, id))objc_msgSend_stret)(self, resultSelector, state);
#endif
} }
- (NSDictionary<NSString *, SKNodeDataChanged> *)sonar_getDataMutationsChanged { - (NSDictionary<NSString *, SKNodeDataChanged> *)sonar_getDataMutationsChanged {