diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-03 17:33:04 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-03 17:33:04 +0000 |
commit | afbc68177cc11b8bfa47464b20e15d5f8fb21d4e (patch) | |
tree | 0b4af44715a2e163bbd576f20df96b8dcabbb23d /lib/Lex/Preprocessor.cpp | |
parent | bfebed2a839e12c3e99d635dbd1f4f875ce8b066 (diff) |
Use getSpelling to get original text of the
c++ operator token. (radar 8328250).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 05621d31b3..5160acf19e 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -613,10 +613,8 @@ void Preprocessor::HandleIdentifier(Token &Identifier) { // C++ 2.11p2: If this is an alternative representation of a C++ operator, // then we act as if it is the actual operator and not the textual // representation of it. - if (II.isCPlusPlusOperatorKeyword()) { + if (II.isCPlusPlusOperatorKeyword()) Identifier.setIdentifierInfo(0); - Identifier.setFlag(Token::CPlusPlusOpKeyword); - } // If this is an extension token, diagnose its use. // We avoid diagnosing tokens that originate from macro definitions. |