diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-14 08:25:35 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-14 08:25:35 +0000 |
commit | 2492a38afcbb8e51454954f73c4d43f87cdd4c88 (patch) | |
tree | c9fb0bc56823395032e7113dd9e6ddf29a6da079 /lib/VMCore/Attributes.cpp | |
parent | 1feacad0ca033e7e8f2f557a0d7fa5acc4076080 (diff) | |
download | llvm-2492a38afcbb8e51454954f73c4d43f87cdd4c88.tar.gz llvm-2492a38afcbb8e51454954f73c4d43f87cdd4c88.tar.bz2 llvm-2492a38afcbb8e51454954f73c4d43f87cdd4c88.tar.xz |
Don't use the new syntax just yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Attributes.cpp')
-rw-r--r-- | lib/VMCore/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index fadb8ca6c1..a32b79d734 100644 --- a/lib/VMCore/Attributes.cpp +++ b/lib/VMCore/Attributes.cpp @@ -522,7 +522,7 @@ AttrListPtr AttrListPtr::addAttr(LLVMContext &C, unsigned Idx, // If there are attributes already at this index, merge them in. if (i != e && OldAttrList[i].Index == Idx) { Attrs = - Attributes::get(C, Attributes::Builder(Attrs). + Attributes::get(Attributes::Builder(Attrs). addAttributes(OldAttrList[i].Attrs)); ++i; } @@ -563,7 +563,7 @@ AttrListPtr AttrListPtr::removeAttr(LLVMContext &C, unsigned Idx, // If there are attributes already at this index, merge them in. assert(OldAttrList[i].Index == Idx && "Attribute isn't set?"); - Attrs = Attributes::get(C, Attributes::Builder(OldAttrList[i].Attrs). + Attrs = Attributes::get(Attributes::Builder(OldAttrList[i].Attrs). removeAttributes(Attrs)); ++i; if (Attrs) // If any attributes left for this parameter, add them. |