[lldb] Fix windows build after getASTContext() change
authorRaphael Isemann <teemperor@gmail.com>
Sat, 21 Dec 2019 22:27:27 +0000 (23:27 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Sat, 21 Dec 2019 22:27:27 +0000 (23:27 +0100)
lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp

index e8a8690..c0163f6 100644 (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(