[clang] Support [[guarded_by(mutex)]] attribute inside C struct (PR #94216)

Arthur Eubanks via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 12 15:39:28 PDT 2024


aeubanks wrote:

reduced:
```
struct Lock {};
struct A {
        Lock lock;
        union {
                bool b __attribute__((guarded_by(lock)));
        };
};
```

seems like a regression, can we revert for now?

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


More information about the cfe-commits mailing list