From ceb433ad162bac35888303d29d34dc2609974d92 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Sat, 21 Dec 2019 23:27:27 +0100 Subject: [PATCH] [lldb] Fix windows build after getASTContext() change --- lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp b/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp index e8a8690c1ff1..c0163f647268 100644 --- a/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp +++ b/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp @@ -437,10 +437,9 @@ TEST_F(SymbolFilePDBTests, TestClassInNamespace) { llvm::dyn_cast_or_null(&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(