From 1a50477385095bcbff8f62b53314c75a5a411122 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Tue, 1 Sep 2009 17:02:21 +0000 Subject: Fixed a property getter ir-gen crash. llvm-svn: 80681 --- clang/lib/CodeGen/CGObjC.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/CodeGen/CGObjC.cpp') 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(Exp)) { Selector S = E->getProperty()->getGetterName(); -- cgit v1.2.3