Skip to content

Commit

Permalink
further arm64 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
steipete committed May 3, 2014
1 parent 7cadd6b commit a908cc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion NSObject+Aspects.m
Expand Up @@ -121,7 +121,11 @@ static void aspect_prepareClassAndHookSelector(id object, SEL selector) {
Class class = aspect_hookClass(object);
Method targetMethod = class_getInstanceMethod(class, selector);
IMP targetMethodIMP = method_getImplementation(targetMethod);
if (targetMethodIMP != _objc_msgForward && targetMethodIMP != (IMP)_objc_msgForward_stret) {
if (targetMethodIMP != _objc_msgForward
#if !defined(__arm64__)
&& targetMethodIMP != (IMP)_objc_msgForward_stret
#endif
) {

// Make a method alias for the existing method implementation.
const char *typeEncoding = method_getTypeEncoding(targetMethod);
Expand Down

0 comments on commit a908cc2

Please sign in to comment.