-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[clang] Remove FEM_Indeterminable #137247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[clang] Remove FEM_Indeterminable #137247
Conversation
Remove FEM_Indeterminable as it is unused and cannot be stored safely in an unsigned bitfield
@llvm/pr-subscribers-clang Author: Oliver Hunt (ojhunt) ChangesRemove FEM_Indeterminable as it is unused and cannot be stored safely in an unsigned bitfield Full diff: https://github.com/llvm/llvm-project/pull/137247.diff 1 Files Affected:
diff --git a/clang/include/clang/Basic/LangOptions.h b/clang/include/clang/Basic/LangOptions.h
index bbebf7af9ede3..1bfc0d8e88556 100644
--- a/clang/include/clang/Basic/LangOptions.h
+++ b/clang/include/clang/Basic/LangOptions.h
@@ -304,10 +304,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.
|
@zahiraam you added these originally, I can't find any use of FEM_Indeterminable, and no obvious place where any one is doing Because language options, etc are stored in unsigned bitfields a negative enum will always come out wrong (the warning being emitted now that we do actually check against a stated preferred_type is correct here). I considered just making it |
…ed back to 2 bits
Why did this get merged before there were any reviews or responses? |
Hmmm, I thought it had been? |
I've reverted, not sure why I thought it had been reviewed? |
Thanks! And I'm happy enough blaming GitHub's poor Ux for all confusion. :-) @zahiraam -- any chance you can look into this? |
=> #137247 |
Remove FEM_Indeterminable as it is unused and cannot be stored safely in an unsigned bitfield
Remove FEM_Indeterminable as it is unused and cannot be stored safely in an unsigned bitfield
Remove FEM_Indeterminable as it is unused and cannot be stored safely in an unsigned bitfield
Remove FEM_Indeterminable as it is unused and cannot be stored safely in an unsigned bitfield
Remove FEM_Indeterminable as it is unused and cannot be stored safely in an unsigned bitfield
Remove FEM_Indeterminable as it is unused and cannot be stored safely in an unsigned bitfield