summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaObjCProperty.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-17 04:53:25 +0000
committerAlp Toker <alp@nuanti.com>2014-05-17 04:53:25 +0000
commit2d57cea25688fc3372467ee97505ed07d8474d48 (patch)
treeefe2fab72e9981b40469865ef663b56ae7cb8db8 /clang/lib/Sema/SemaObjCProperty.cpp
parentec2748a8ad62769ff1a76d6ba2e57c17e888ded7 (diff)
downloadbcm5719-llvm-2d57cea25688fc3372467ee97505ed07d8474d48.tar.gz
bcm5719-llvm-2d57cea25688fc3372467ee97505ed07d8474d48.zip
Provide and use a safe Token::getRawIdentifier() accessor
llvm-svn: 209061
Diffstat (limited to 'clang/lib/Sema/SemaObjCProperty.cpp')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index 1b49c2abdc9..6ece0a53c71 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud