forked from OSchip/llvm-project
Fixed some API drift by making "used" attributes
in a better way. llvm-svn: 199408
This commit is contained in:
parent
8f4921c333
commit
79fde96b6a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue