Bug 1731304 [wpt PR 30802] - Update wpt metadata, a=testonly
[gecko.git] / build / build-clang / revert-llvmorg-12-init-7827-g2a078c307204.patch
blob1900c90963da3fbebd5f563ddc518e53017f9a90
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)