[clang] [clang] Support 'this' position for lifetimebound attribute (PR #115021)
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 5 10:20:49 PST 2024
================
@@ -396,12 +397,19 @@ class ObjCMethodTableInfo
const uint8_t *&Data) {
ObjCMethodInfo Info;
uint8_t Payload = *Data++;
+ bool HasSelf = Payload & 0x01;
+ Payload >>= 1;
Info.RequiredInit = Payload & 0x01;
Payload >>= 1;
Info.DesignatedInit = Payload & 0x01;
Payload >>= 1;
+ assert(Payload == 0 && "Wrong format.");
----------------
compnerd wrote:
```suggestion
assert(Payload == 0 && "Unable to fully decode 'Payload'.");
```
https://github.com/llvm/llvm-project/pull/115021
More information about the cfe-commits
mailing list