aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-09-17 10:21:55 +0000
committerNadav Rotem <nrotem@apple.com>2012-09-17 10:21:55 +0000
commita26cadc58d32a739ccf99423922bfc542c1026b1 (patch)
treeddd185583002758f24b9bfbc443b29f3268d8608 /lib/CodeGen
parent9f9ce61972871efcf794bdc6125835c2c32cd863 (diff)
Disable the protection from escaped allocas in an attempt to find violating passes. This may break the buildbots. I plan to revert it in a few hours.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/StackColoring.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/StackColoring.cpp b/lib/CodeGen/StackColoring.cpp
index e9695b91e1..54d8c8cde7 100644
--- a/lib/CodeGen/StackColoring.cpp
+++ b/lib/CodeGen/StackColoring.cpp
@@ -62,14 +62,13 @@ DisableColoring("no-stack-coloring",
cl::init(false), cl::Hidden,
cl::desc("Disable stack coloring"));
-
/// The user may write code that uses allocas outside of the declared lifetime
/// zone. This can happen when the user returns a reference to a local
/// data-structure. We can detect these cases and decide not to optimize the
/// code. If this flag is enabled, we try to save the user.
static cl::opt<bool>
ProtectFromEscapedAllocas("protect-from-escaped-allocas",
- cl::init(true), cl::Hidden,
+ cl::init(false), cl::Hidden,
cl::desc("Do not optimize lifetime zones that are broken"));
STATISTIC(NumMarkerSeen, "Number of lifetime markers found.");