diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-06-01 21:29:32 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-06-01 21:29:32 +0000 |
| commit | 102e390bcb5a1fb1a8fdbc8505e6dfd905374bbd (patch) | |
| tree | 3e7233d21d45786e723e9eedfa3662cb8782f639 /lib/CodeGen/CGExpr.cpp | |
| parent | 6c9b3151a2e9ec09b76296b57069f68e17413319 (diff) | |
| download | clang-102e390bcb5a1fb1a8fdbc8505e6dfd905374bbd.tar.gz clang-102e390bcb5a1fb1a8fdbc8505e6dfd905374bbd.tar.bz2 clang-102e390bcb5a1fb1a8fdbc8505e6dfd905374bbd.tar.xz | |
A corner case of objc2 gc's write-barrier generation
for the Next runtime.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 155658e92d..c5f23879d1 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -769,7 +769,7 @@ LValue CodeGenFunction::EmitUnaryOpLValue(const UnaryOperator *E) { if (getContext().getLangOptions().ObjC1 && getContext().getLangOptions().getGCMode() != LangOptions::NonGC && LV.isObjCWeak()) - LValue::SetObjCNonGC(LV, !E->isOBJCGCCandidate()); + LValue::SetObjCNonGC(LV, !E->isOBJCGCCandidate(getContext())); return LV; } case UnaryOperator::Real: @@ -904,7 +904,7 @@ LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E) { getContext().getObjCGCAttrKind(T)); if (getContext().getLangOptions().ObjC1 && getContext().getLangOptions().getGCMode() != LangOptions::NonGC) - LValue::SetObjCNonGC(LV, !E->isOBJCGCCandidate()); + LValue::SetObjCNonGC(LV, !E->isOBJCGCCandidate(getContext())); return LV; } |
