projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ac3287
)
[Attributes] Remove duplicate attribute in typeIncompatible() (NFC)
author
Nikita Popov
<nikita.ppv@gmail.com>
Mon, 12 Jul 2021 19:59:29 +0000
(21:59 +0200)
committer
Nikita 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
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Attributes.cpp
b/llvm/lib/IR/Attributes.cpp
index
06042b2
..
3a4d82b
100644
(file)
--- a/
llvm/lib/IR/Attributes.cpp
+++ b/
llvm/lib/IR/Attributes.cpp
@@
-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)