Skip to content

Commit a9d6e95

Browse files
author
git apple-llvm automerger
committed
Merge commit '55e39100dae2' from llvm.org/main into next
2 parents e211ba2 + 55e3910 commit a9d6e95

File tree

3 files changed

+3
-35
lines changed

3 files changed

+3
-35
lines changed

clang/include/clang/Basic/FPOptions.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ OPTION(NoHonorInfs, bool, 1, NoHonorNaNs)
2424
OPTION(NoSignedZero, bool, 1, NoHonorInfs)
2525
OPTION(AllowReciprocal, bool, 1, NoSignedZero)
2626
OPTION(AllowApproxFunc, bool, 1, AllowReciprocal)
27-
OPTION(FPEvalMethod, LangOptions::FPEvalMethodKind, 3, AllowApproxFunc)
27+
OPTION(FPEvalMethod, LangOptions::FPEvalMethodKind, 2, AllowApproxFunc)
2828
OPTION(Float16ExcessPrecision, LangOptions::ExcessPrecisionKind, 2, FPEvalMethod)
2929
OPTION(BFloat16ExcessPrecision, LangOptions::ExcessPrecisionKind, 2, Float16ExcessPrecision)
3030
OPTION(MathErrno, bool, 1, BFloat16ExcessPrecision)

clang/include/clang/Basic/LangOptions.def

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -354,21 +354,7 @@ 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__) && defined(__has_warning)
359-
#if __has_warning("-Wpreferred-type-bitfield-enum-conversion")
360-
// FIXME: Remove this once the warning is fixed, https://llvm.org/PR137600
361-
#pragma clang diagnostic push
362-
#pragma clang diagnostic ignored "-Wpreferred-type-bitfield-enum-conversion"
363-
#endif
364-
#endif
365-
BENIGN_ENUM_LANGOPT(FPEvalMethod, FPEvalMethodKind, 3, FEM_UnsetOnCommandLine, "FP type used for floating point arithmetic")
366-
#if defined(__clang__) && defined(__has_warning)
367-
#if __has_warning("-Wpreferred-type-bitfield-enum-conversion")
368-
#pragma clang diagnostic pop
369-
#endif
370-
#endif
371-
357+
BENIGN_ENUM_LANGOPT(FPEvalMethod, FPEvalMethodKind, 2, FEM_UnsetOnCommandLine, "FP type used for floating point arithmetic")
372358
ENUM_LANGOPT(Float16ExcessPrecision, ExcessPrecisionKind, 2, FPP_Standard, "Intermediate truncation behavior for Float16 arithmetic")
373359
ENUM_LANGOPT(BFloat16ExcessPrecision, ExcessPrecisionKind, 2, FPP_Standard, "Intermediate truncation behavior for BFloat16 arithmetic")
374360
LANGOPT(NoBitFieldTypeAlign , 1, 0, "bit-field type alignment")

clang/include/clang/Basic/LangOptions.h

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,6 @@ class LangOptionsBase {
8080

8181
LangOptionsBase() = default;
8282

83-
#if defined(__clang__) && defined( __has_warning)
84-
#if __has_warning("-Wpreferred-type-bitfield-enum-conversion")
85-
// FIXME: Remove this once the warning is fixed, https://llvm.org/PR137600
86-
#pragma clang diagnostic push
87-
#pragma clang diagnostic ignored "-Wpreferred-type-bitfield-enum-conversion"
88-
#endif
89-
#endif
90-
LangOptionsBase(const LangOptionsBase&) = default;
91-
LangOptionsBase& operator=(const LangOptionsBase&) = default;
92-
#if defined(__clang__) && defined( __has_warning)
93-
#if __has_warning("-Wpreferred-type-bitfield-enum-conversion")
94-
#pragma clang diagnostic pop
95-
#endif
96-
#endif
97-
9883
enum GCMode { NonGC, GCOnly, HybridGC };
9984
enum StackProtectorMode { SSPOff, SSPOn, SSPStrong, SSPReq };
10085

@@ -323,10 +308,7 @@ class LangOptionsBase {
323308
};
324309

325310
/// Possible float expression evaluation method choices.
326-
enum FPEvalMethodKind {
327-
/// The evaluation method cannot be determined or is inconsistent for this
328-
/// target.
329-
FEM_Indeterminable = -1,
311+
enum FPEvalMethodKind : unsigned {
330312
/// Use the declared type for fp arithmetic.
331313
FEM_Source = 0,
332314
/// Use the type double for fp arithmetic.

0 commit comments

Comments
 (0)