[clang] [APINotes] Support C++ tag conformances to Swift protocols (PR #102664)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 10 12:56:43 PDT 2024


================
@@ -572,6 +572,13 @@ class TagTableInfo
                                         ReleaseOpLength - 1);
       Data += ReleaseOpLength - 1;
     }
+    unsigned ConformsToLength =
+        endian::readNext<uint16_t, llvm::endianness::little>(Data);
+    if (ConformsToLength > 0) {
----------------
compnerd wrote:

```suggestion
    if (unsigned ConformsToLength =
            endian::readNext<uint16_t, llvm::endianness::little>(Data)) {
```

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


More information about the cfe-commits mailing list