Merge pull request #1244 from emankov/cuDNN

[HIPIFY][#1239] Fix an assert
이 커밋은 다음에 포함됨:
Evgeny Mankov 작성하고 GitHub가 2019-07-22 22:18:58 +03:00를 커밋함
커밋 bec84fa53b
1 파일이 변경됨
+3 -2
+3 -2
파일 보기
@@ -267,11 +267,12 @@ void HipifyAction::PragmaDirective(clang::SourceLocation Loc, clang::PragmaIntro
return;
}
clang::Preprocessor& PP = getCompilerInstance().getPreprocessor();
const clang::Token tok = PP.LookAhead(0);
clang::Token tok;
PP.Lex(tok);
StringRef Text(SM.getCharacterData(tok.getLocation()), tok.getLength());
if (Text == "once") {
pragmaOnce = true;
pragmaOnceLoc = PP.LookAhead(1).getLocation();
pragmaOnceLoc = tok.getEndLoc();
}
}