зеркало из https://github.com/mozilla/gecko-dev.git
18 строки
894 B
Diff
18 строки
894 B
Diff
llvmorg-12-init-7827-g2a078c307204 leads to linker complaints in shippable
|
|
builds. It may be related to LTO with IR from rustc. The patch author and I
|
|
were unable to get to the bottom of it, and in the end they suggested that
|
|
it's safe to undo the change locally.
|
|
|
|
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
|
|
index 368fc87dc801..96c2388d776e 100644
|
|
--- a/llvm/lib/IR/Attributes.cpp
|
|
+++ b/llvm/lib/IR/Attributes.cpp
|
|
@@ -1902,7 +1902,6 @@ AttrBuilder AttributeFuncs::typeIncompatible(Type *Ty) {
|
|
.addAttribute(Attribute::ReadNone)
|
|
.addAttribute(Attribute::ReadOnly)
|
|
.addAttribute(Attribute::SwiftError)
|
|
- .addAlignmentAttr(1) // the int here is ignored
|
|
.addDereferenceableAttr(1) // the int here is ignored
|
|
.addDereferenceableOrNullAttr(1) // the int here is ignored
|
|
.addPreallocatedAttr(Ty)
|