Fixed some API drift by making "used" attributes

in a better way.

llvm-svn: 199408
This commit is contained in:
Sean Callanan 2014-01-16 18:47:07 +00:00
parent 8f4921c333
commit 79fde96b6a
1 changed files with 1 additions and 1 deletions

View File

@ -4745,7 +4745,7 @@ ClangASTType::AddMethodToCXXRecordType (const char *name,
cxx_method_decl->setVirtualAsWritten (is_virtual);
if (is_attr_used)
cxx_method_decl->addAttr(::new (*m_ast) UsedAttr(SourceRange(), *m_ast));
cxx_method_decl->addAttr(clang::UsedAttr::CreateImplicit(*m_ast));
// Populate the method decl with parameter decls