]> granicus.if.org Git - clang/commit
Fix handling of preincrement on bit-fields. This gives a bit-field in C++, but
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 24 Sep 2014 23:55:00 +0000 (23:55 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 24 Sep 2014 23:55:00 +0000 (23:55 +0000)
commit7a0ca9263dbfeaad11ae68a64056c3d31a6cf56d
treeb6fa5de37184514c197cc5847d997e0c25baa143
parentbf97d3666cba7f7197276a5549e3d76c52e82fa8
Fix handling of preincrement on bit-fields. This gives a bit-field in C++, but
we were failing to find that bit-field when performing integer promotions. This
brings us closer to following the standard, and closer to GCC.

In C, this change is technically a regression: we get bit-field promotions
completely wrong in C, promoting cases that are categorically not bit-field
designators. This change makes us do so slightly more consistently, though.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218428 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
lib/AST/Expr.cpp
test/Sema/bitfield.c
test/SemaCXX/bitfield.cpp [new file with mode: 0644]