[PATCH] D85990: [Clang] Fix BZ47169, loader_uninitialized on incomplete types
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 20 15:52:20 PDT 2020
JonChesterfield added inline comments.
================
Comment at: clang/test/CodeGenCXX/attr-loader-uninitialized.cpp:34
+
+// CHECK: @templ_int = global %struct.templ undef, align 8
+templ<int> templ_int [[clang::loader_uninitialized]];
----------------
This broke 32 bit builds where the pointer is not eight byte aligned. Patched by dropping the align from the filecheck pattern in 3d82c9b6960afe50a76b8c23e9bc42c51d41e767. Credit to Luke Benes for reporting the error, thanks!
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