mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
Preserve calling convention during function cloning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8e7416632
commit
9e49f1bc58
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user