From 435bbe0254871a7f55acbf0b3f0c3a4867b51acc Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 15 Jan 2009 18:32:35 +0000 Subject: Fix some unused variable, control reaches end of non-void function, and uninitialized use options. llvm-svn: 62270 --- clang/lib/CodeGen/CGObjC.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CGObjC.cpp') diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index a285d7533a9..29740fdf8f8 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -301,15 +301,14 @@ RValue CodeGenFunction::EmitObjCPropertyGet(const Expr *Exp) { EmitScalarExpr(E->getBase()), false, CallArgList()); } - else if (const ObjCKVCRefExpr *E = dyn_cast(Exp)) { + else { + const ObjCKVCRefExpr *E = cast(Exp); Selector S = E->getGetterMethod()->getSelector(); return CGM.getObjCRuntime(). GenerateMessageSend(*this, Exp->getType(), S, EmitScalarExpr(E->getBase()), false, CallArgList()); } - else - assert (0 && "bad expression node in EmitObjCPropertyGet"); } void CodeGenFunction::EmitObjCPropertySet(const Expr *Exp, -- cgit v1.2.3