diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2016-11-25 22:35:09 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2016-11-25 22:35:09 +0000 |
| commit | d5648c7a7dcce518cb021104ab35601ea8feb444 (patch) | |
| tree | 5620a0dd4e7f8801b843580a06235df9e1bbe49e /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | |
| parent | 534e270ae50391e4292dc0094b01d655122e1480 (diff) | |
| download | bcm5719-llvm-d5648c7a7dcce518cb021104ab35601ea8feb444.tar.gz bcm5719-llvm-d5648c7a7dcce518cb021104ab35601ea8feb444.zip | |
Replace some callers of setTailCall with setTailCallKind
We were a little sloppy with adding tailcall markers. Be more
consistent by using setTailCallKind instead of setTailCall.
llvm-svn: 287955
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index c0389df5b73..47bf107e66e 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -885,8 +885,8 @@ DoPromotion(Function *F, SmallPtrSetImpl<Argument *> &ArgsToPromote, cast<CallInst>(New)->setCallingConv(CS.getCallingConv()); cast<CallInst>(New)->setAttributes(AttributeSet::get(New->getContext(), AttributesVec)); - if (cast<CallInst>(Call)->isTailCall()) - cast<CallInst>(New)->setTailCall(); + cast<CallInst>(New)->setTailCallKind( + cast<CallInst>(Call)->getTailCallKind()); } New->setDebugLoc(Call->getDebugLoc()); Args.clear(); |

