summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-09-12 14:10:14 +0000
committerAlexey Samsonov <samsonov@google.com>2012-09-12 14:10:14 +0000
commit4787d0fbeff57cdf7bcd25e9b727dd2b2c424afa (patch)
tree3abf57f7f914def295df6ce08fa87ffc5e630f59 /compiler-rt/lib/interception
parent85e2bbc3f8c751584871537e72caffc2bffb9613 (diff)
downloadbcm5719-llvm-4787d0fbeff57cdf7bcd25e9b727dd2b2c424afa.tar.gz
bcm5719-llvm-4787d0fbeff57cdf7bcd25e9b727dd2b2c424afa.zip
[ASan] more macro/casting magic to suppress warnings
llvm-svn: 163706
Diffstat (limited to 'compiler-rt/lib/interception')
-rw-r--r--compiler-rt/lib/interception/interception_mac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/interception/interception_mac.h b/compiler-rt/lib/interception/interception_mac.h
index 31fd7b399c8..6e9e80817cb 100644
--- a/compiler-rt/lib/interception/interception_mac.h
+++ b/compiler-rt/lib/interception/interception_mac.h
@@ -42,7 +42,7 @@ bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func);
::__interception::OverrideFunction( \
(::__interception::uptr)old_func, \
(::__interception::uptr)new_func, \
- (::__interception::uptr*)&REAL(old_func))
+ (::__interception::uptr*)((::__interception::uptr)&REAL(old_func)))
# define INTERCEPT_FUNCTION_MAC(func) OVERRIDE_FUNCTION_MAC(func, WRAP(func))
#endif // INTERCEPTION_MAC_H
OpenPOWER on IntegriCloud