Change checkUnsafeAssignLiteral() to use the new Sema::CheckLiteralKind().
Along the way, fix a bug in CheckLiteralKind(), previously in diagnoseObjCLiteralComparison, where we didn't ignore parentheses in boxed expressions for purpose of classification. In other words, both @42 and @(42) should be classified as numeric literals. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170931 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 1 addition, 1 deletioninclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Sema/SemaChecking.cpp 15 additions, 24 deletionslib/Sema/SemaChecking.cpp
- lib/Sema/SemaExpr.cpp 1 addition, 1 deletionlib/Sema/SemaExpr.cpp
- test/SemaObjC/arc.m 6 additions, 2 deletionstest/SemaObjC/arc.m
Loading
Please register or sign in to comment