summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGValue.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-11-17 00:07:33 +0000
committerJohn McCall <rjmccall@apple.com>2010-11-17 00:07:33 +0000
commit5b26f65b3d63cf230f20c0e6bff4bc6253032f70 (patch)
tree63d2dc9bdffaf33d3a5d79175ea3b57e8d870920 /clang/lib/CodeGen/CGValue.h
parentbbb7d625462419dd7a576034abcb52fc9b44628f (diff)
downloadbcm5719-llvm-5b26f65b3d63cf230f20c0e6bff4bc6253032f70.tar.gz
bcm5719-llvm-5b26f65b3d63cf230f20c0e6bff4bc6253032f70.zip
Reset the lifetime-managed flag between emission of the agg conditional
branches. Fixes PR8623. llvm-svn: 119408
Diffstat (limited to 'clang/lib/CodeGen/CGValue.h')
-rw-r--r--clang/lib/CodeGen/CGValue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGValue.h b/clang/lib/CodeGen/CGValue.h
index a000b223311..bb98c3cb237 100644
--- a/clang/lib/CodeGen/CGValue.h
+++ b/clang/lib/CodeGen/CGValue.h
@@ -379,8 +379,8 @@ public:
bool isLifetimeExternallyManaged() const {
return LifetimeFlag;
}
- void setLifetimeExternallyManaged() {
- LifetimeFlag = true;
+ void setLifetimeExternallyManaged(bool Managed = true) {
+ LifetimeFlag = Managed;
}
bool isVolatile() const {
OpenPOWER on IntegriCloud