diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-09-01 17:02:21 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-09-01 17:02:21 +0000 |
commit | d2e1eb064cfb8d361ea1dd4f6253a4e20f24d88d (patch) | |
tree | 5ea7f6d4664aee556123cb3396bc34e22c3ae32c /lib/CodeGen/CGObjC.cpp | |
parent | 8f1d89e40ac853903916b88b850fb9638609173d (diff) |
Fixed a property getter ir-gen crash.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 8c0c225d1a..5899912981 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -327,6 +327,7 @@ RValue CodeGenFunction::EmitObjCSuperPropertyGet(const Expr *Exp, } RValue CodeGenFunction::EmitObjCPropertyGet(const Expr *Exp) { + Exp = Exp->IgnoreParens(); // FIXME: Split it into two separate routines. if (const ObjCPropertyRefExpr *E = dyn_cast<ObjCPropertyRefExpr>(Exp)) { Selector S = E->getProperty()->getGetterName(); |