[llvm-branch-commits] [clang] [clang] Remove FEM_Indeterminable (#137661) (PR #138337)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri May 2 13:18:14 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Oliver Hunt (ojhunt)

<details>
<summary>Changes</summary>

Remove FEM_Indeterminable as it is unused and cannot be stored safely in an unsigned bitfield

---
Full diff: https://github.com/llvm/llvm-project/pull/138337.diff


1 Files Affected:

- (modified) clang/include/clang/Basic/LangOptions.h (+1-4) 


``````````diff
diff --git a/clang/include/clang/Basic/LangOptions.h b/clang/include/clang/Basic/LangOptions.h
index 16c35bcf49339..d16f32bf618ee 100644
--- a/clang/include/clang/Basic/LangOptions.h
+++ b/clang/include/clang/Basic/LangOptions.h
@@ -299,10 +299,7 @@ class LangOptionsBase {
   };
 
   /// Possible float expression evaluation method choices.
-  enum FPEvalMethodKind {
-    /// The evaluation method cannot be determined or is inconsistent for this
-    /// target.
-    FEM_Indeterminable = -1,
+  enum FPEvalMethodKind : unsigned {
     /// Use the declared type for fp arithmetic.
     FEM_Source = 0,
     /// Use the type double for fp arithmetic.

``````````

</details>


https://github.com/llvm/llvm-project/pull/138337


More information about the llvm-branch-commits mailing list