diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-17 04:53:25 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-17 04:53:25 +0000 |
commit | 9db67864c522312bf596a17cd260d8567af669d1 (patch) | |
tree | da5a39a168d84b0f29ce929fe6254096d7a1b625 /lib/Sema/SemaObjCProperty.cpp | |
parent | 5027d6f10a9e7c2afa88ce6dc6560f8f4c4ff47c (diff) |
Provide and use a safe Token::getRawIdentifier() accessor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r-- | lib/Sema/SemaObjCProperty.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 1b49c2abdc..6ece0a53c7 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -292,8 +292,7 @@ static bool LocPropertyAttribute( ASTContext &Context, const char *attrName, Token Tok; do { lexer.LexFromRawLexer(Tok); - if (Tok.is(tok::raw_identifier) && - StringRef(Tok.getRawIdentifierData(), Tok.getLength()) == attrName) { + if (Tok.is(tok::raw_identifier) && Tok.getRawIdentifier() == attrName) { Loc = Tok.getLocation(); return true; } |