https://github.com/AtariDreams updated 
https://github.com/llvm/llvm-project/pull/91955

>From 1c064f093ebeae097a4e96c8186be68922f59d7c Mon Sep 17 00:00:00 2001
From: Rose <gfunni...@gmail.com>
Date: Mon, 13 May 2024 08:54:36 -0400
Subject: [PATCH] [AST] Replace localUncachedLookup with noload_lookup in
 ASTImporterFixtures

---
 clang/unittests/AST/ASTImporterFixtures.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/clang/unittests/AST/ASTImporterFixtures.cpp 
b/clang/unittests/AST/ASTImporterFixtures.cpp
index 897b370dd3cdc..cf6a52331125b 100644
--- a/clang/unittests/AST/ASTImporterFixtures.cpp
+++ b/clang/unittests/AST/ASTImporterFixtures.cpp
@@ -157,11 +157,8 @@ std::tuple<Decl *, Decl *> 
ASTImporterTestBase::getImportedDecl(
   assert(ImportedII && "Declaration with the given identifier "
                        "should be specified in test!");
   DeclarationName ImportDeclName(ImportedII);
-  SmallVector<NamedDecl *, 1> FoundDecls;
-  FromCtx.getTranslationUnitDecl()->localUncachedLookup(ImportDeclName,
-                                                        FoundDecls);
-
-  assert(FoundDecls.size() == 1);
+  DeclContext::lookup_result FoundDecls =
+      FromCtx.getTranslationUnitDecl()->noload_lookup(ImportDeclName);
 
   Decl *Imported =
       FromTU.import(SharedStatePtr, ToAST.get(), FoundDecls.front());

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

Reply via email to