[clang] [APINotes] Add support for SWIFT_RETURED_AS_UNRETAINED_BY_DEFAULT (PR #138699)
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Tue May 6 12:04:21 PDT 2025
================
@@ -624,6 +624,13 @@ class TagTableInfo
ReleaseOpLength - 1);
Data += ReleaseOpLength - 1;
}
+ unsigned DefaultOwnershipLength =
+ endian::readNext<uint16_t, llvm::endianness::little>(Data);
+ if (DefaultOwnershipLength > 0) {
----------------
compnerd wrote:
```suggestion
if (unsigned DefaultOwnershipLength =
endian::readNext<uint16_t, llvm::endianness::little>(Data)) {
```
This matches the style in the rest of the code.
https://github.com/llvm/llvm-project/pull/138699
More information about the cfe-commits
mailing list