]> granicus.if.org Git - clang/commit
[Lexer] Ensure that the token is not an annotation token when
authorAlex Lorenz <arphaman@gmail.com>
Wed, 17 May 2017 11:08:36 +0000 (11:08 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 17 May 2017 11:08:36 +0000 (11:08 +0000)
commitbd77dc6b8f04ac9afcb5487e91d7a5034521e2cc
tree97e01e405fdc14513ba1a9f57a5d70ff4de022c8
parentbb0d458629af8f3d52e8fa61ed730a9081a120c3
[Lexer] Ensure that the token is not an annotation token when
retrieving the identifer info for an Objective-C keyword

This commit fixes an assertion that's triggered in getIdentifier when the token
is an annotation token.

rdar://32225463

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303246 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/Lexer.cpp
test/Modules/Inputs/module.map
test/Modules/Inputs/objcAtKeywordMissingEnd.h [new file with mode: 0644]
test/Modules/objc-at-keyword.m [new file with mode: 0644]