Author: Raphael Isemann
Date: 2019-12-21T23:27:27+01:00
New Revision: ceb433ad162bac35888303d29d34dc2609974d92

URL: 
https://github.com/llvm/llvm-project/commit/ceb433ad162bac35888303d29d34dc2609974d92
DIFF: 
https://github.com/llvm/llvm-project/commit/ceb433ad162bac35888303d29d34dc2609974d92.diff

LOG: [lldb] Fix windows build after getASTContext() change

Added: 
    

Modified: 
    lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp

Removed: 
    


################################################################################
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<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(


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to