summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-03 23:43:59 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-03 23:43:59 +0000
commit1ef7373ee856892023e3db88c7f51bbf15b6df09 (patch)
treec119480b52f7b7a4bdc9d25a4c1e8ba665920d64 /clang/lib
parenta33461150d24a11b14355da17cd4ff2b0b9d4b0e (diff)
downloadbcm5719-llvm-1ef7373ee856892023e3db88c7f51bbf15b6df09.tar.gz
bcm5719-llvm-1ef7373ee856892023e3db88c7f51bbf15b6df09.zip
Fix return type for calls to objc_setProperty.
llvm-svn: 63683
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index 3ebee12f0df..ef4cf04073d 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/lib/CodeGen/CGObjC.cpp
@@ -183,6 +183,8 @@ void CodeGenFunction::GenerateObjCGetter(ObjCImplementationDecl *IMP,
Args.push_back(std::make_pair(RValue::get(CmdVal), Cmd->getType()));
Args.push_back(std::make_pair(RValue::get(Offset), getContext().LongTy));
Args.push_back(std::make_pair(RValue::get(True), getContext().BoolTy));
+ // FIXME: We shouldn't need to get the function info here, the
+ // runtime already should have computed it to build the function.
RValue RV = EmitCall(Types.getFunctionInfo(PD->getType(), Args),
GetPropertyFn, Args);
// We need to fix the type here. Ivars with copy & retain are
@@ -269,7 +271,9 @@ void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP,
getContext().BoolTy));
Args.push_back(std::make_pair(RValue::get(IsCopy ? True : False),
getContext().BoolTy));
- EmitCall(Types.getFunctionInfo(PD->getType(), Args),
+ // FIXME: We shouldn't need to get the function info here, the
+ // runtime already should have computed it to build the function.
+ EmitCall(Types.getFunctionInfo(getContext().VoidTy, Args),
SetPropertyFn, Args);
} else {
SourceLocation Loc = PD->getLocation();
OpenPOWER on IntegriCloud