Skip to content

Commit d39acfa

Browse files
committed
Comment
1 parent b0fb6a7 commit d39acfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7983,6 +7983,8 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
79837983
I.getArgOperand(Idx)->getType());
79847984
Arg.setAttributes(&I, Idx);
79857985

7986+
// If we have an explicit sret argument that is an Instruction, (i.e., it
7987+
// might point to function-local memory), we can't meaningfully tail-call.
79867988
if (Arg.IsSRet && isa<Instruction>(I.getArgOperand(Idx)))
79877989
isTailCall = false;
79887990

0 commit comments

Comments
 (0)