[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 e67bde9108
commit 6d3c443234
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