commit | f530ff76de3b270f2287d3555d93b5d270643eeb | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Fri Dec 21 21:59:39 2012 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Fri Dec 21 21:59:39 2012 +0000 |
tree | acf27a4fab5571d695a29f698f416f282a8bbd8b | |
parent | 3ee069bddb538ebafff2068e99136cc526fb9fdd [diff] |
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