[HIPIFY][fix][#204] Suppress warning message: #pragma once in main file

This commit is contained in:
Evgeny Mankov committed 2019-04-24 20:35:52 +03:00
1 parent 45c7535b1f
commit df9418c3cd
3 files changed
+13

No files matched your search

+8
View File
@@ -110,4 +110,12 @@ std::error_code real_path(const Twine &path, SmallVectorImpl<char> &output,
#endif
}
bool pragma_once_outside_header() {
#if LLVM_VERSION_MAJOR < 4
return false;
#else
return true;
#endif
}
} // namespace llcompat