summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-03 23:55:40 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-03 23:55:40 +0000
commit84388bf397e11a21a97cb9b0f8ca8c667921ff81 (patch)
treeb0753364cef5e0feb496750ca2a026db03d2ce96 /clang/lib/CodeGen/CGObjC.cpp
parent82c72e1ee416a529ea5a0555864bf5aeecbf5732 (diff)
downloadbcm5719-llvm-84388bf397e11a21a97cb9b0f8ca8c667921ff81.tar.gz
bcm5719-llvm-84388bf397e11a21a97cb9b0f8ca8c667921ff81.zip
Use CGCall infrastructure to call enumeration mutation function.
llvm-svn: 63685
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index ef4cf04073d..1443f2e4e9c 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/lib/CodeGen/CGObjC.cpp
@@ -472,7 +472,13 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S)
Builder.CreateBitCast(Collection,
ConvertType(getContext().getObjCIdType()),
"tmp");
- Builder.CreateCall(EnumerationMutationFn, V);
+ CallArgList Args2;
+ Args2.push_back(std::make_pair(RValue::get(V),
+ getContext().getObjCIdType()));
+ // FIXME: We shouldn't need to get the function info here, the
+ // runtime already should have computed it to build the function.
+ EmitCall(CGM.getTypes().getFunctionInfo(getContext().VoidTy, Args),
+ EnumerationMutationFn, Args2);
EmitBlock(WasNotMutated);
OpenPOWER on IntegriCloud