================
@@ -346,7 +369,11 @@ void ReadParamInfo(const uint8_t *&Data, ParamInfo &Info) {
if (Payload & 0x01)
Info.setNoEscape(Payload & 0x02);
Payload >>= 2;
- assert(Payload == 0 && "Bad API notes");
+ if (Payload & 0x01) {
+ BoundsSafetyInfo BSI;
+ ReadBoundsSafetyInfo(Data, BSI);
+ Info.BoundsSafety = BSI;
----------------
compnerd wrote:
Why the local variable and assign rather than say:
```c++
if (Payload & 0x01)
ReadBoundsSafetyInfo(Data, Info.BoundsSafety);
```
https://github.com/llvm/llvm-project/pull/186960
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits