diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-15 18:32:35 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-15 18:32:35 +0000 |
commit | 435bbe0254871a7f55acbf0b3f0c3a4867b51acc (patch) | |
tree | 20fa668e46c0ad93952c103ea7d238526c8a0743 /clang/lib/CodeGen/CGObjC.cpp | |
parent | 8bdc6983367273c562d2acaf55a3f2b1b8e7fd83 (diff) | |
download | bcm5719-llvm-435bbe0254871a7f55acbf0b3f0c3a4867b51acc.tar.gz bcm5719-llvm-435bbe0254871a7f55acbf0b3f0c3a4867b51acc.zip |
Fix some unused variable, control reaches end of non-void function,
and uninitialized use options.
llvm-svn: 62270
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjC.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<ObjCKVCRefExpr>(Exp)) { + else { + const ObjCKVCRefExpr *E = cast<ObjCKVCRefExpr>(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, |