[cfe-commits] r63685 - /cfe/trunk/lib/CodeGen/CGObjC.cpp
Daniel Dunbar
daniel at zuster.org
Tue Feb 3 15:55:41 PST 2009
Author: ddunbar
Date: Tue Feb 3 17:55:40 2009
New Revision: 63685
URL: http://llvm.org/viewvc/llvm-project?rev=63685&view=rev
Log:
Use CGCall infrastructure to call enumeration mutation function.
Modified:
cfe/trunk/lib/CodeGen/CGObjC.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjC.cpp?rev=63685&r1=63684&r2=63685&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjC.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjC.cpp Tue Feb 3 17:55:40 2009
@@ -472,7 +472,13 @@
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);
More information about the cfe-commits
mailing list