Skip to content

Commit

Permalink
Revert "Fix assertion when removing decls coming from a pch/pcm"
Browse files Browse the repository at this point in the history
This reverts commit 6137654.
  • Loading branch information
tapaswenipathak authored and vgvassilev committed May 26, 2022
1 parent 1679bc9 commit 9b99914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/llvm/src/tools/clang/lib/AST/DeclBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ void DeclContext::removeDecl(Decl *D) {
StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr;
if (Map) {
StoredDeclsMap::iterator Pos = Map->find(ND->getDeclName());
assert((DC->hasExternalVisibleStorage() || Pos != Map->end()) && "no lookup entry for decl");
assert(Pos != Map->end() && "no lookup entry for decl");
if (Pos != Map->end()) {
// Remove the decl only if it is contained.
StoredDeclsList::DeclsTy *Vec = Pos->second.getAsVector();
Expand Down

0 comments on commit 9b99914

Please sign in to comment.