mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-01 14:58:18 +00:00
Use CGCall infrastructure to call enumeration mutation function.
llvm-svn: 63685
This commit is contained in:
parent
82c72e1ee4
commit
84388bf397
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user