mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Fix build break due to signature change on ASTContext' setExternalSource parameter.
This change converts points to clang::ExternalASTSource from llvm::OwningPtr<> to llvm::IntrusiveRefCntPtr<>. llvm-svn: 202411
This commit is contained in:
@@ -1765,7 +1765,7 @@ Target::GetScratchClangASTContext(bool create_on_demand)
|
||||
m_scratch_ast_context_ap.reset (new ClangASTContext(m_arch.GetTriple().str().c_str()));
|
||||
m_scratch_ast_source_ap.reset (new ClangASTSource(shared_from_this()));
|
||||
m_scratch_ast_source_ap->InstallASTContext(m_scratch_ast_context_ap->getASTContext());
|
||||
llvm::OwningPtr<clang::ExternalASTSource> proxy_ast_source(m_scratch_ast_source_ap->CreateProxy());
|
||||
llvm::IntrusiveRefCntPtr<clang::ExternalASTSource> proxy_ast_source(m_scratch_ast_source_ap->CreateProxy());
|
||||
m_scratch_ast_context_ap->SetExternalSource(proxy_ast_source);
|
||||
}
|
||||
return m_scratch_ast_context_ap.get();
|
||||
|
||||
Reference in New Issue
Block a user