Hide #pragma clang behind ifdef guards to fix MSVC "unknown pragma 'clang'" warning. NFC.

This commit is contained in:
Simon Pilgrim 2023-08-16 09:52:02 +01:00
parent 4a6edd5c10
commit b4c4de9cf8

View File

@ -15,7 +15,9 @@
using namespace llvm;
using namespace llvm::opt;
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
enum ID {
OPT_INVALID = 0, // This is not an option ID.