diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-01-19 11:47:13 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-01-19 11:47:13 +0000 |
commit | 0d45d5ee267a176a0ccadb1cc617779717953977 (patch) | |
tree | 0576f4afe99f396c8c12247350d775d8d592b94f /lib/msan | |
parent | 7023d934fbfdb6105b5e445c349823737ff627d1 (diff) |
[sanitizer] Switch flag parsing to LowLevelAlloc.
InternalAlloc is quite complex and its behavior may depend on the values of
flags. As such, it should not be used while parsing flags.
Sadly, LowLevelAlloc does not support deallocation of memory.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan')
-rw-r--r-- | lib/msan/msan.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msan/msan.cc b/lib/msan/msan.cc index c8bd6039c..81c623498 100644 --- a/lib/msan/msan.cc +++ b/lib/msan/msan.cc @@ -125,8 +125,8 @@ void RegisterMsanFlags(FlagParser *parser, Flags *f) { #include "msan_flags.inc" #undef MSAN_FLAG - FlagHandlerKeepGoing *fh_keep_going = - new (INTERNAL_ALLOC) FlagHandlerKeepGoing(&f->halt_on_error); // NOLINT + FlagHandlerKeepGoing *fh_keep_going = new (FlagParser::Alloc) // NOLINT + FlagHandlerKeepGoing(&f->halt_on_error); parser->RegisterHandler("keep_going", fh_keep_going, "deprecated, use halt_on_error"); } |