[lldb] Fix windows build after getASTContext() change

This commit is contained in:
Raphael Isemann 2019-12-21 23:27:27 +01:00
parent f9f49d3594
commit ceb433ad16
1 changed files with 2 additions and 3 deletions

View File

@ -437,10 +437,9 @@ TEST_F(SymbolFilePDBTests, TestClassInNamespace) {
llvm::dyn_cast_or_null<ClangASTContext>(&clang_ast_ctx_or_err.get());
EXPECT_NE(nullptr, clang_ast_ctx);
auto ast_ctx = clang_ast_ctx->getASTContext();
EXPECT_NE(nullptr, ast_ctx);
clang::ASTContext &ast_ctx = clang_ast_ctx->getASTContext();
auto tu = ast_ctx->getTranslationUnitDecl();
auto tu = ast_ctx.getTranslationUnitDecl();
EXPECT_NE(nullptr, tu);
symfile->ParseDeclsForContext(CompilerDeclContext(