]> granicus.if.org Git - clang/commit
Honor __unaligned in codegen for declarations and expressions
authorRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Wed, 8 Mar 2017 14:00:44 +0000 (14:00 +0000)
committerRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Wed, 8 Mar 2017 14:00:44 +0000 (14:00 +0000)
commitac0afca9c16b8910f99b407baf99eb0079afcb46
tree694b3241a3cfd9e636c01023a76e2eb5495fe022
parentdaad58b44fcc39de10e1a38a4a4e6aaa3c8ed01a
Honor __unaligned in codegen for declarations and expressions

This patch honors the unaligned type qualifier (currently available through he
keyword __unaligned and -fms-extensions) in CodeGen. In the current form the
patch affects declarations and expressions. It does not affect fields of
classes.

Differential Revision: https://reviews.llvm.org/D30166

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297276 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
lib/AST/ExprConstant.cpp
lib/CodeGen/CodeGenFunction.cpp
test/CodeGen/unaligned-decl.c [new file with mode: 0644]
test/CodeGen/unaligned-expr.c [new file with mode: 0644]
test/CodeGen/unaligned-field.c [new file with mode: 0644]
test/CodeGenCXX/unaligned.cpp [new file with mode: 0644]