summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 4db492a13a1..9a6a1f2b412 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/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 =
OpenPOWER on IntegriCloud