[PATCH] D85990: [Clang] Fix BZ47169, loader_uninitialized on incomplete types

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 19 10:10:55 PDT 2020


JonChesterfield added a comment.

Works out cleanly, thanks for the suggestion.



================
Comment at: clang/lib/Sema/SemaDecl.cpp:12478
 
     if (!Var->isInvalidDecl() && RealDecl->hasAttr<LoaderUninitializedAttr>()) {
+      if (Var->getStorageClass() == SC_Extern) {
----------------
Same as first diff except for swapping the existing two checks over.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85990/new/

https://reviews.llvm.org/D85990



More information about the cfe-commits mailing list