[PATCH] D42968: Fix for PR32992. Static const classes not exported.

Zahira Ammarguellat via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 10:49:32 PST 2018


zahiraam updated this revision to Diff 135665.
zahiraam marked an inline comment as done.

https://reviews.llvm.org/D42968

Files:
  lib/Sema/SemaDeclCXX.cpp


Index: lib/Sema/SemaDeclCXX.cpp
===================================================================
--- lib/Sema/SemaDeclCXX.cpp
+++ lib/Sema/SemaDeclCXX.cpp
@@ -5498,8 +5498,7 @@
     if (VD && Member->getAttr<DLLExportAttr>() &&
         VD->getStorageClass() == SC_Static &&
         TSK == TSK_ImplicitInstantiation)
-      S.PendingInstantiations.push_back(
-	  std::make_pair(VD, VD->getLocation()));
+      S.MarkVariableReferenced(VD->getLocation(), VD);
 
     auto *MD = dyn_cast<CXXMethodDecl>(Member);
     if (!MD)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42968.135665.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180223/741bf246/attachment.bin>


More information about the llvm-commits mailing list