Skip to content

Commit e27360a

Browse files
author
git apple-llvm automerger
committed
Merge commit '01e029602a8a' from llvm.org/main into next
2 parents d681e79 + 01e0296 commit e27360a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/include/clang/Basic/LangOptions.def

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,17 @@ BENIGN_ENUM_LANGOPT(DefaultFPContractMode, FPModeKind, 2, FPM_Off, "FP contracti
354354
COMPATIBLE_LANGOPT(ExpStrictFP, 1, false, "Enable experimental strict floating point")
355355
BENIGN_LANGOPT(RoundingMath, 1, false, "Do not assume default floating-point rounding behavior")
356356
BENIGN_ENUM_LANGOPT(FPExceptionMode, FPExceptionModeKind, 2, FPE_Default, "FP Exception Behavior Mode type")
357+
358+
#if defined(__clang__)
359+
// FIXME: Remove this once the warning is fixed, https://llvm.org/PR137600
360+
#pragma clang diagnostic push
361+
#pragma clang diagnostic ignored "-Wpreferred-type-bitfield-enum-conversion"
362+
#endif
357363
BENIGN_ENUM_LANGOPT(FPEvalMethod, FPEvalMethodKind, 3, FEM_UnsetOnCommandLine, "FP type used for floating point arithmetic")
364+
#if defined(__clang__)
365+
#pragma clang diagnostic pop
366+
#endif
367+
358368
ENUM_LANGOPT(Float16ExcessPrecision, ExcessPrecisionKind, 2, FPP_Standard, "Intermediate truncation behavior for Float16 arithmetic")
359369
ENUM_LANGOPT(BFloat16ExcessPrecision, ExcessPrecisionKind, 2, FPP_Standard, "Intermediate truncation behavior for BFloat16 arithmetic")
360370
LANGOPT(NoBitFieldTypeAlign , 1, 0, "bit-field type alignment")

0 commit comments

Comments
 (0)