diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2015-01-02 21:28:37 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-01-02 21:28:37 +0000 |
commit | c426c337ed8ceee256a7ce29de400bb4c44e2dcf (patch) | |
tree | d4b297fc121d440ca04dee449f8ba1910c305201 /clang/lib/Driver/Tools.cpp | |
parent | 1d59f49f9ce096887aaa5fdc4be134c9ea5784a9 (diff) | |
download | llvm-c426c337ed8ceee256a7ce29de400bb4c44e2dcf.zip llvm-c426c337ed8ceee256a7ce29de400bb4c44e2dcf.tar.gz llvm-c426c337ed8ceee256a7ce29de400bb4c44e2dcf.tar.bz2 |
Revert "Revert r224736: "[Sanitizer] Make CommonFlags immutable after initialization.""
Fix test failures by introducing CommonFlags::CopyFrom() to make sure
compiler doesn't insert memcpy() calls into runtime code.
Original commit message:
Protect CommonFlags singleton by adding const qualifier to
common_flags() accessor. The only ways to modify the flags are
SetCommonFlagsDefaults(), ParseCommonFlagsFromString() and
OverrideCommonFlags() functions, which are only supposed to be
called during initialization.
llvm-svn: 225088
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions