summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2016-09-16 01:38:43 +0000
committerVitaly Buka <vitalybuka@google.com>2016-09-16 01:38:43 +0000
commit4670ae5f6117714571d1e21a7adc5be3c4bbd584 (patch)
treeed1564d9fea6dc339590e5dbd2dfea6f7bfa1d3e /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
parent5ee727add54b91b83cb0fd2f0de881608f2bb377 (diff)
downloadbcm5719-llvm-4670ae5f6117714571d1e21a7adc5be3c4bbd584.tar.gz
bcm5719-llvm-4670ae5f6117714571d1e21a7adc5be3c4bbd584.zip
Revert "[asan] Add flag to allow lifetime analysis of problematic allocas"
This approach is not good enough. Working on the new solution. This reverts commit r281126. llvm-svn: 281688
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index e86fa8beeb9..729dc7c5567 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -183,10 +183,6 @@ static cl::opt<bool> ClExperimentalPoisoning(
"asan-experimental-poisoning",
cl::desc("Enable experimental red zones and scope poisoning"), cl::Hidden,
cl::init(true));
-static cl::opt<bool> ClSkipAmbiguousLifetimeAllocas(
- "asan-skip-ambiguous-lifetime-allocas",
- cl::desc("Disabled lifetime check for allocas with ambiguous lifetime"),
- cl::Hidden, cl::init(true));
// This flag may need to be replaced with -f[no]asan-globals.
static cl::opt<bool> ClGlobals("asan-globals",
cl::desc("Handle global objects"), cl::Hidden,
@@ -894,8 +890,6 @@ public:
// This is workaround for PR28267.
void removeAllocasWithAmbiguousLifetime(
SmallVectorImpl<FunctionStackPoisoner::AllocaPoisonCall> &PoisonCallVec) {
- if (!ClSkipAmbiguousLifetimeAllocas)
- return;
DenseMap<const AllocaInst *, AllocaLifetimeChecker> Checkers;
for (const auto &APC : PoisonCallVec)
Checkers[APC.AI].AddMarker(APC.InsBefore->getParent(), !APC.DoPoison);
OpenPOWER on IntegriCloud