Skip to content

Commit eead1a5

Browse files
committed
Remove Range attr when comparing for tailcall
1 parent c7910ee commit eead1a5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/CodeGen/Analysis.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,10 @@ bool llvm::attributesPermitTailCall(const Function *F, const Instruction *I,
593593

594594
// Following attributes are completely benign as far as calling convention
595595
// goes, they shouldn't affect whether the call is a tail call.
596-
for (const auto &Attr : {Attribute::Alignment, Attribute::Dereferenceable,
597-
Attribute::DereferenceableOrNull, Attribute::NoAlias,
598-
Attribute::NonNull, Attribute::NoUndef}) {
596+
for (const auto &Attr :
597+
{Attribute::Alignment, Attribute::Dereferenceable,
598+
Attribute::DereferenceableOrNull, Attribute::NoAlias,
599+
Attribute::NonNull, Attribute::NoUndef, Attribute::Range}) {
599600
CallerAttrs.removeAttribute(Attr);
600601
CalleeAttrs.removeAttribute(Attr);
601602
}

0 commit comments

Comments
 (0)