Skip to content

Commit 6b78e63

Browse files
committed
Update Attr in TargetLowering as well
1 parent b079469 commit 6b78e63

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ bool TargetLowering::isInTailCallPosition(SelectionDAG &DAG, SDNode *Node,
6262
// the return. Ignore following attributes because they don't affect the
6363
// call sequence.
6464
AttrBuilder CallerAttrs(F.getContext(), F.getAttributes().getRetAttrs());
65-
for (const auto &Attr : {Attribute::Alignment, Attribute::Dereferenceable,
66-
Attribute::DereferenceableOrNull, Attribute::NoAlias,
67-
Attribute::NonNull, Attribute::NoUndef})
65+
for (const auto &Attr :
66+
{Attribute::Alignment, Attribute::Dereferenceable,
67+
Attribute::DereferenceableOrNull, Attribute::NoAlias,
68+
Attribute::NonNull, Attribute::NoUndef, Attribute::Range})
6869
CallerAttrs.removeAttribute(Attr);
6970

7071
if (CallerAttrs.hasAttributes())

0 commit comments

Comments
 (0)