summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-02-22 18:40:18 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-02-22 18:40:18 +0000
commit0773533b27d40fa9f68be97ab7c737a5dcd37930 (patch)
tree7a4d93463135d61b3af3283f1f317c5772c92160 /clang/lib/CodeGen/CGExpr.cpp
parent648c5e9c9928c55a89eb4a71f20cb065686e07ed (diff)
downloadbcm5719-llvm-0773533b27d40fa9f68be97ab7c737a5dcd37930.tar.gz
bcm5719-llvm-0773533b27d40fa9f68be97ab7c737a5dcd37930.zip
More objc gc work. Match gcc's treatment of ivar access
true a local pointer to objective-c object in generating write barriers. llvm-svn: 65290
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 2348a11f7b0..c96265242ac 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -782,7 +782,7 @@ LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E) {
getContext().getObjCGCAttrKind(T));
if (getContext().getLangOptions().ObjC1 &&
getContext().getLangOptions().getGCMode() != LangOptions::NonGC)
- LValue::SetObjCNonGC(LV, !E->hasGlobalStorage());
+ LValue::SetObjCNonGC(LV, !E->isOBJCGCCandidate());
return LV;
}
OpenPOWER on IntegriCloud