[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

Jon Roelofs via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 24 15:14:46 PDT 2024


================
@@ -4699,7 +4699,7 @@ class FunctionEffect {
 
 private:
   LLVM_PREFERRED_TYPE(Kind)
-  unsigned FKind : 3;
+  uint8_t FKind : 3;
----------------
jroelofs wrote:

also, github won't let me comment on the correct lines, but:

```
-  FunctionEffect() : FKind(unsigned(Kind::None)) {}
-  explicit FunctionEffect(Kind K) : FKind(unsigned(K)) {}
  
+  FunctionEffect() : FKind(uint8_t(Kind::None)) {}
+  explicit FunctionEffect(Kind K) : FKind(uint8_t(K)) {}
```

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


More information about the cfe-commits mailing list