1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Preserve calling convention during function cloning

llvm-svn: 48708
This commit is contained in:
Anton Korobeynikov 2008-03-23 16:03:00 +00:00
parent 7a1df26c95
commit 48f56482e8

View File

@ -83,6 +83,9 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
// Clone the parameter attributes
NewFunc->setParamAttrs(OldFunc->getParamAttrs());
// Clone the calling convention
NewFunc->setCallingConv(OldFunc->getCallingConv());
// Loop over all of the basic blocks in the function, cloning them as
// appropriate. Note that we save BE this way in order to handle cloning of
// recursive functions into themselves.