[Attributes] Remove duplicate attribute in typeIncompatible() (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 12 Jul 2021 19:59:29 +0000 (21:59 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 12 Jul 2021 19:59:29 +0000 (21:59 +0200)
InAlloca was listed twice, once as a normal attribute, once as a
type attribute.

llvm/lib/IR/Attributes.cpp

index 06042b2..3a4d82b 100644 (file)
@@ -1899,7 +1899,6 @@ AttrBuilder AttributeFuncs::typeIncompatible(Type *Ty) {
         .addDereferenceableOrNullAttr(1) // the int here is ignored
         .addAttribute(Attribute::ReadNone)
         .addAttribute(Attribute::ReadOnly)
-        .addAttribute(Attribute::InAlloca)
         .addPreallocatedAttr(Ty)
         .addInAllocaAttr(Ty)
         .addByValAttr(Ty)