]> granicus.if.org Git - clang/commit
Fix for PR14269: Clang crashes when a bit field is used as inline assembler
authorAlexander Musman <alexander.musman@gmail.com>
Fri, 5 Jun 2015 13:40:59 +0000 (13:40 +0000)
committerAlexander Musman <alexander.musman@gmail.com>
Fri, 5 Jun 2015 13:40:59 +0000 (13:40 +0000)
commit27a3de8cace2484d2f8099ef6e7743dde2b8a987
tree30c71c57021c11dff657bda26d9637ab5e18e50d
parentdd9bf939b7207712068a2fcfa22ec70be182c482
Fix for PR14269: Clang crashes when a bit field is used as inline assembler
input / output with memory constraint.
One generally can't get address of a bit field, so the general solution is to
error on such cases. GCC does the same.

Patch by Andrey Bokhanko

Differential Revision: http://reviews.llvm.org/D10086

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239153 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaStmtAsm.cpp
test/Sema/asm.c