[llvm] 59bb722 - [Attributes] Remove duplicate attribute in typeIncompatible() (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 12 13:00:30 PDT 2021
Author: Nikita Popov
Date: 2021-07-12T21:59:29+02:00
New Revision: 59bb72262425a0206bdb4a2ff3f54653bc898e14
URL: https://github.com/llvm/llvm-project/commit/59bb72262425a0206bdb4a2ff3f54653bc898e14
DIFF: https://github.com/llvm/llvm-project/commit/59bb72262425a0206bdb4a2ff3f54653bc898e14.diff
LOG: [Attributes] Remove duplicate attribute in typeIncompatible() (NFC)
InAlloca was listed twice, once as a normal attribute, once as a
type attribute.
Added:
Modified:
llvm/lib/IR/Attributes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 06042b221b8f..3a4d82bebdeb 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)
More information about the llvm-commits
mailing list