[PATCH] D30166: Honor __unaligned in codegen for declarations and expressions

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 27 15:55:12 PST 2017


aaron.ballman added a reviewer: majnemer.
aaron.ballman added inline comments.


================
Comment at: include/clang/AST/ASTContext.h:1909
+    // the unqualified type.
+    if (T.getQualifiers().hasUnaligned())
+      TI.Align = getCharWidth();
----------------
This makes me a bit uncomfortable -- wouldn't we rather have the distinction between unqualified and qualified types instead of a mixture of both when calling `getTypeInfo()`?


https://reviews.llvm.org/D30166





More information about the cfe-commits mailing list