diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-02-22 18:40:18 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-02-22 18:40:18 +0000 |
commit | 0773533b27d40fa9f68be97ab7c737a5dcd37930 (patch) | |
tree | 7a4d93463135d61b3af3283f1f317c5772c92160 /clang/lib/CodeGen | |
parent | 648c5e9c9928c55a89eb4a71f20cb065686e07ed (diff) | |
download | bcm5719-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')
-rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 2 |
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; } |