[PATCH] D14872: PR25575: Make GCC 4.4+ comatible layout for packed bit-fileds of char type
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 1 05:54:10 PST 2015
aaron.ballman added inline comments.
================
Comment at: lib/Sema/SemaDeclAttr.cpp:1046
@@ +1045,3 @@
+ diag::note_attribute_packed_for_bitfield_offset_changed)
+ << FD->getDeclName();
+
----------------
No need to call getDeclName(), the diagnostic can accept a NamedDecl directly (which properly quotes the name in the diagnostic).
http://reviews.llvm.org/D14872
More information about the cfe-commits
mailing list