diff options
| author | John McCall <rjmccall@apple.com> | 2013-05-06 21:39:12 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2013-05-06 21:39:12 +0000 |
| commit | d25db7ed0f8ec288a770a75b88caaa688ac22079 (patch) | |
| tree | d8c43fb8b78535ecf9afca1a38c1eb1a7b68c401 /clang/lib/Sema/SemaExpr.cpp | |
| parent | 252a0acce2b38dbf23e4e4df47b251cfa2af39aa (diff) | |
| download | bcm5719-llvm-d25db7ed0f8ec288a770a75b88caaa688ac22079.tar.gz bcm5719-llvm-d25db7ed0f8ec288a770a75b88caaa688ac22079.zip | |
Grab-bag of bit-field fixes:
- References to ObjC bit-field ivars are bit-field lvalues;
fixes rdar://13794269, which got me started down this.
- Introduce Expr::refersToBitField, switch a couple users to
it where semantically important, and comment the difference
between this and the existing API.
- Discourage Expr::getBitField by making it a bit longer and
less general-sounding.
- Lock down on const_casts of bit-field gl-values until we
hear back from the committee as to whether they're allowed.
llvm-svn: 181252
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 0c1065813eb..dd05b822364 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -3383,7 +3383,7 @@ Sema::CreateUnaryExprOrTypeTraitExpr(Expr *E, SourceLocation OpLoc, isInvalid = CheckAlignOfExpr(*this, E); } else if (ExprKind == UETT_VecStep) { isInvalid = CheckVecStepExpr(E); - } else if (E->getBitField()) { // C99 6.5.3.4p1. + } else if (E->refersToBitField()) { // C99 6.5.3.4p1. Diag(E->getExprLoc(), diag::err_sizeof_alignof_bitfield) << 0; isInvalid = true; } else { |

