Update CPPBackend to new API for AttrListPtr::get.
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>
Tue, 29 May 2012 15:07:18 +0000 (15:07 +0000)
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>
Tue, 29 May 2012 15:07:18 +0000 (15:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157624 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CppBackend/CPPBackend.cpp

index 2ac9fe71fb491917d9927bcb1d54b3f17cfbc041..cd2ebcb508798e757859588406a75976f047e62f 100644 (file)
@@ -496,7 +496,7 @@ void CppWriter::printAttributes(const AttrListPtr &PAL,
       Out << "Attrs.push_back(PAWI);";
       nl(Out);
     }
-    Out << name << "_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());";
+    Out << name << "_PAL = AttrListPtr::get(Attrs);";
     nl(Out);
     out(); nl(Out);
     Out << '}'; nl(Out);