forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1720606 - Fix for clang-trunk build after IR commit broken the at…
…tributes patch. r=firefox-build-system-reviewers,glandium After changeset 5e4b33fe9218703f0b29e2446159bcf4202d15fa the Attributes.cpp file was changed so our patched version was not sticking on top of it. This patch does the proper rebase. Differential Revision: https://phabricator.services.mozilla.com/D119951
- Loading branch information
1 parent
f5c81ff
commit c95cc38
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
build/build-clang/revert-llvmorg-12-init-7827-g2a078c307204-trunk.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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) |