[PATCH] D74361: [Clang] Undef attribute for global variables

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 14 08:53:36 PDT 2020


erichkeane added a comment.

Yep!  Declaring a global variable that isn't 'extern' with an incomplete type is disallowed anyway, so if you call RequireCompleteType, you're likely just diagnosing that early.

You MIGHT have to do some work to allow:

  struct S;
  extern S foo __attribute__((loader_uninitialized));


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74361



More information about the cfe-commits mailing list