aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-07-12 21:59:29 +0200
committerNikita Popov <nikita.ppv@gmail.com>2021-07-12 21:59:29 +0200
commit59bb72262425a0206bdb4a2ff3f54653bc898e14 (patch)
treee5b4a39232ce7e6b9a1f43b202ae01ff41f227b0 /llvm/lib/IR/Attributes.cpp
parent6ac32872ee2fa02bdce54b25641d9a21cfbcfa9a (diff)
downloadllvm-59bb72262425a0206bdb4a2ff3f54653bc898e14.zip
llvm-59bb72262425a0206bdb4a2ff3f54653bc898e14.tar.gz
llvm-59bb72262425a0206bdb4a2ff3f54653bc898e14.tar.bz2
[Attributes] Remove duplicate attribute in typeIncompatible() (NFC)
InAlloca was listed twice, once as a normal attribute, once as a type attribute.
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 06042b2..3a4d82b 100644
--- 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)