Skip to content

Commit

Permalink
Revert "[clang-repl] Recover the lookup tables of the primary context."
Browse files Browse the repository at this point in the history
This reverts commit 5ff27fe.

This patch caused failures in asan: https://lab.llvm.org/buildbot/#/builders/5/builds/24221
  • Loading branch information
vgvassilev committed May 31, 2022
1 parent 563cc3f commit 575e297
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion clang/lib/Interpreter/IncrementalParser.cpp
Expand Up @@ -188,7 +188,7 @@ IncrementalParser::ParseOrWrapTopLevelDecl() {
S.TUScope->setEntity(PreviousTU);

// Clean up the lookup table
if (StoredDeclsMap *Map = PreviousTU->getPrimaryContext()->getLookupPtr()) {
if (StoredDeclsMap *Map = PreviousTU->getLookupPtr()) {
for (auto I = Map->begin(); I != Map->end(); ++I) {
StoredDeclsList &List = I->second;
DeclContextLookupResult R = List.getLookupResult();
Expand Down
1 change: 0 additions & 1 deletion clang/test/Interpreter/execute.cpp
@@ -1,4 +1,3 @@
// RUN: clang-repl "int x = 10;" "int y=7; err;" "int y = 10;"
// RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \
// RUN: 'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s
// REQUIRES: host-supports-jit
Expand Down

0 comments on commit 575e297

Please sign in to comment.