[llvm-commits] [compiler-rt] r173158 - /compiler-rt/trunk/lib/msan/msan_interceptors.cc
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Jan 22 05:35:45 PST 2013
Author: eugenis
Date: Tue Jan 22 07:35:45 2013
New Revision: 173158
URL: http://llvm.org/viewvc/llvm-project?rev=173158&view=rev
Log:
[msan] Follow -msan-keep-going in reports from interceptors.
Modified:
compiler-rt/trunk/lib/msan/msan_interceptors.cc
Modified: compiler-rt/trunk/lib/msan/msan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_interceptors.cc?rev=173158&r1=173157&r2=173158&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/msan/msan_interceptors.cc Tue Jan 22 07:35:45 2013
@@ -25,6 +25,8 @@
// ACHTUNG! No other system header includes in this file.
// Ideally, we should get rid of stdarg.h as well.
+extern "C" const int __msan_keep_going;
+
using namespace __msan;
#define ENSURE_MSAN_INITED() do { \
@@ -44,6 +46,10 @@
__FUNCTION__, offset, x, n); \
__msan::PrintWarningWithOrigin( \
pc, bp, __msan_get_origin((char*)x + offset)); \
+ if (!__msan_keep_going) { \
+ Printf("Exiting\n"); \
+ Die(); \
+ } \
} \
} while (0)
More information about the llvm-commits
mailing list