Skip to content

Commit 5556bf2

Browse files
committed
Use #elif
1 parent b52dc20 commit 5556bf2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

flang/include/flang/Tools/TargetSetup.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,15 @@ namespace Fortran::tools {
2929

3030
// Figure out if we can support F128: see
3131
// flang/runtime/Float128Math/math-entries.h
32-
// clang-format off
3332
#ifdef FLANG_RUNTIME_F128_MATH_LIB
3433
// we can use libquadmath wrappers
3534
constexpr bool f128Support = true;
36-
#else
37-
#if LDBL_MANT_DIG == 113
35+
#elif LDBL_MANT_DIG == 113
3836
// we can use libm wrappers
3937
constexpr bool f128Support = true;
40-
#else
38+
#else
4139
constexpr bool f128Support = false;
42-
#endif // LDBL_MANT_DIG
43-
#endif // FLANG_RUNTIME_F128_MATH_LIB
44-
// clang-format on
40+
#endif
4541

4642
if constexpr (!f128Support)
4743
targetCharacteristics.DisableType(Fortran::common::TypeCategory::Real, 16);

0 commit comments

Comments
 (0)