[PATCH] D31187: Fix removal of out-of-line definitions.

Vassil Vassilev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 21 06:41:15 PDT 2017


v.g.vassilev updated this revision to Diff 92481.
v.g.vassilev edited the summary of this revision.
v.g.vassilev added a comment.

U9999


https://reviews.llvm.org/D31187

Files:
  lib/AST/DeclBase.cpp


Index: lib/AST/DeclBase.cpp
===================================================================
--- lib/AST/DeclBase.cpp
+++ lib/AST/DeclBase.cpp
@@ -1301,7 +1301,7 @@
     // Remove only decls that have a name
     if (!ND->getDeclName()) return;
 
-    auto *DC = this;
+    auto *DC = D->getDeclContext();
     do {
       StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr;
       if (Map) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31187.92481.patch
Type: text/x-patch
Size: 402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170321/374bd006/attachment.bin>


More information about the cfe-commits mailing list