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

Roger Ferrer Ibanez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 28 02:02:37 PST 2017


rogfer01 updated this revision to Diff 89989.
rogfer01 added a comment.

Avoid altering results of TypeInfo due to the __unaligned qualifier. Instead override the natural alignment to 1 if the type is __unaligned-qualified.


https://reviews.llvm.org/D30166

Files:
  lib/AST/ASTContext.cpp
  lib/AST/ExprConstant.cpp
  lib/CodeGen/CodeGenFunction.cpp
  test/CodeGen/unaligned-decl.c
  test/CodeGen/unaligned-expr.c
  test/CodeGen/unaligned-field.c
  test/CodeGenCXX/unaligned.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30166.89989.patch
Type: text/x-patch
Size: 9092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170228/21dd250e/attachment-0001.bin>


More information about the cfe-commits mailing list