[PATCH] D74361: [Clang] Undef attribute for global variables
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 27 16:38:26 PST 2020
JonChesterfield marked an inline comment as done.
JonChesterfield added inline comments.
================
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:6509
+static void handleNoZeroInitializerAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
+ D->addAttr(::new (S.Context) NoZeroInitializerAttr(S.Context, AL));
+}
----------------
cast<VarDecl>(D)->hasInit() seems to always return true here - presumably the error needs to be emitted sometime before this
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