diff options
author | Tanya Lattner <tonic@nondot.org> | 2011-04-14 23:35:31 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2011-04-14 23:35:31 +0000 |
commit | b38b6a77ab946ed331f06f6028963d781bac7431 (patch) | |
tree | d1224fceb350c7ae427156b5e97c39455559107c | |
parent | 87f106462ce49a4a9b812b9de92aadd4e54567bd (diff) |
Do not expand the opencl pragma names. This is so you can also have a define named the samed as the pragma and they do not interfere (ie. cl_khr_fp64).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129549 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Parse/ParsePragma.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParsePragma.cpp b/lib/Parse/ParsePragma.cpp index 5585209e88..beb1af67ac 100644 --- a/lib/Parse/ParsePragma.cpp +++ b/lib/Parse/ParsePragma.cpp @@ -387,7 +387,7 @@ void PragmaOpenCLExtensionHandler::HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) { - PP.Lex(Tok); + PP.LexUnexpandedToken(Tok); if (Tok.isNot(tok::identifier)) { PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) << "OPENCL"; |