[Lldb-commits] [lldb] ceb433a - [lldb] Fix windows build after getASTContext() change

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Sat Dec 21 14:30:00 PST 2019


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(


        


More information about the lldb-commits mailing list