[HIPIFY][fix] Fix for upcoming LLVM 10.0

[ROCm/clr commit: 8eb7d53cec]
This commit is contained in:
Evgeny Mankov
2019-09-01 18:15:03 +03:00
parent 41e5c9fad7
commit 46373a3631
@@ -43,7 +43,13 @@ public:
ct::FrontendActionFactory(),
replacements(r) {}
#if LLVM_VERSION_MAJOR < 10
clang::FrontendAction* create() override {
return new T(replacements);
}
#else
std::unique_ptr <clang::FrontendAction> create() override {
return std::unique_ptr<clang::FrontendAction>(new T(replacements));
}
#endif
};