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 | a0f3e8d1cb1497169b782774f9c7c3133e689914 (patch) | |
tree | 8b4606e011e782a7a933363bc1cd13e6b9166877 | |
parent | 2a3c1cca7d2b21f7c1115b1aa3fea146ed229335 (diff) | |
download | bcm5719-llvm-a0f3e8d1cb1497169b782774f9c7c3133e689914.tar.gz bcm5719-llvm-a0f3e8d1cb1497169b782774f9c7c3133e689914.zip |
Don't use the new syntax just yet.
llvm-svn: 165897
-rw-r--r-- | llvm/lib/VMCore/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Attributes.cpp b/llvm/lib/VMCore/Attributes.cpp index fadb8ca6c1d..a32b79d7346 100644 --- a/llvm/lib/VMCore/Attributes.cpp +++ b/llvm/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. |