forked from OSchip/llvm-project
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).
llvm-svn: 129549
This commit is contained in:
parent
44887f9c7e
commit
ee840b85b1
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue