1 llvmorg-12-init-7827-g2a078c307204 leads to linker complaints in shippable
2 builds. It may be related to LTO with IR from rustc. The patch author and I
3 were unable to get to the bottom of it, and in the end they suggested that
4 it's safe to undo the change locally.
6 diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
7 index b21d4527484..e9602f1aaf1 100644
8 --- a/llvm/lib/IR/Attributes.cpp
9 +++ b/llvm/lib/IR/Attributes.cpp
10 @@ -1848,7 +1848,6 @@ AttrBuilder AttributeFuncs::typeIncompatible(Type *Ty) {
11 .addAttribute(Attribute::NoAlias)
12 .addAttribute(Attribute::NoCapture)
13 .addAttribute(Attribute::NonNull)
14 - .addAlignmentAttr(1) // the int here is ignored
15 .addDereferenceableAttr(1) // the int here is ignored
16 .addDereferenceableOrNullAttr(1) // the int here is ignored
17 .addAttribute(Attribute::ReadNone)