summaryrefslogtreecommitdiff
path: root/lib/msan/msan_interceptors.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-10-03 15:43:59 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-10-03 15:43:59 +0000
commit8cde99fb9df913aaf7c1715cd134110dd5a15834 (patch)
tree7288b67b7d790aabe1f718b80798afee2ce10390 /lib/msan/msan_interceptors.cc
parent14dd980b384ad859099b499e12f320c4791fb674 (diff)
downloadcompiler-rt-8cde99fb9df913aaf7c1715cd134110dd5a15834.tar.gz
compiler-rt-8cde99fb9df913aaf7c1715cd134110dd5a15834.tar.bz2
compiler-rt-8cde99fb9df913aaf7c1715cd134110dd5a15834.tar.xz
asan/msan: fix "unused function 'OnExit'" warning
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_interceptors.cc')
-rw-r--r--lib/msan/msan_interceptors.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/msan/msan_interceptors.cc b/lib/msan/msan_interceptors.cc
index 34bb31b4..b616b984 100644
--- a/lib/msan/msan_interceptors.cc
+++ b/lib/msan/msan_interceptors.cc
@@ -1112,11 +1112,15 @@ struct MSanInterceptorContext {
bool in_interceptor_scope;
};
-static int OnExit() {
+namespace __msan {
+
+int OnExit() {
// FIXME: ask frontend whether we need to return failure.
return 0;
}
+} // namespace __msan
+
// A version of CHECK_UNPOISED using a saved scope value. Used in common
// interceptors.
#define CHECK_UNPOISONED_CTX(ctx, x, n) \