aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-03-19 10:48:37 +0000
committerAlexey Samsonov <samsonov@google.com>2013-03-19 10:48:37 +0000
commit7d0d85f38854b085bfe5c1bd4870126359f578c6 (patch)
tree166b73dafe96e50d53f3de3a1ee1ca62ba8d94da /lib/Driver/Tools.cpp
parent7cca821e1acf0f1b4fe892c3111bfb2086832e4e (diff)
[ASan] Make -fsanitize=address always imply -fsanitize=init-order
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 4db492a13a..9a6a1f2b41 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -1475,8 +1475,6 @@ SanitizerArgs::SanitizerArgs(const Driver &D, const ArgList &Args)
AsanZeroBaseShadow(false) {
unsigned AllKinds = 0; // All kinds of sanitizers that were turned on
// at least once (possibly, disabled further).
- unsigned AllRemovedKinds = 0; // All kinds of sanitizers that were explicitly
- // removed at least once.
for (ArgList::const_iterator I = Args.begin(), E = Args.end(); I != E; ++I) {
unsigned Add, Remove;
if (!parse(D, Args, *I, Add, Remove, true))
@@ -1485,12 +1483,6 @@ SanitizerArgs::SanitizerArgs(const Driver &D, const ArgList &Args)
Kind |= Add;
Kind &= ~Remove;
AllKinds |= Add;
- AllRemovedKinds |= Remove;
- }
- // Assume -fsanitize=address implies -fsanitize=init-order, if the latter is
- // not disabled explicitly.
- if ((Kind & Address) != 0 && (AllRemovedKinds & InitOrder) == 0) {
- Kind |= InitOrder;
}
UbsanTrapOnError =