From 312b28ce9d9af2c2951d587c70e39755afdf8c44 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 29 May 2012 15:07:18 +0000 Subject: Update CPPBackend to new API for AttrListPtr::get. llvm-svn: 157624 --- llvm/lib/Target/CppBackend/CPPBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp') diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 2ac9fe71fb4..cd2ebcb5087 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -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); -- cgit v1.2.3