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 | 1a50477385095bcbff8f62b53314c75a5a411122 (patch) | |
tree | 6e04dc919865d0e330c2f2181c7ce323999ea986 /clang/lib/CodeGen/CGObjC.cpp | |
parent | 1543d133db58f89a8f55ed215b87f662acdcace3 (diff) | |
download | bcm5719-llvm-1a50477385095bcbff8f62b53314c75a5a411122.tar.gz bcm5719-llvm-1a50477385095bcbff8f62b53314c75a5a411122.zip |
Fixed a property getter ir-gen crash.
llvm-svn: 80681
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index 8c0c225d1ac..58999129813 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/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(); |