diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2023-04-12 16:45:55 -0700 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2023-04-12 16:45:56 -0700 |
commit | 2ba88443b31a437a3e80ac4bb6d8ca1675828d1b (patch) | |
tree | 45809015ac4435bef59bd3129ecca0d615f6e285 /clang/lib/Sema/SemaModule.cpp | |
parent | 719024a0d02f3da1e08d09613c7cad5b8d6f6d26 (diff) | |
download | llvm-2ba88443b31a437a3e80ac4bb6d8ca1675828d1b.zip llvm-2ba88443b31a437a3e80ac4bb6d8ca1675828d1b.tar.gz llvm-2ba88443b31a437a3e80ac4bb6d8ca1675828d1b.tar.bz2 |
Fix an assertion failure in unwrapSugar
An assertion in Qualifiers::addObjCLifetime fails when the ObjC lifetime
bits are already set.
Instead of calling operator+=, call addConsistentQualifiers, which
allows the lifetime bits to be set again as long the new value doesn't
conflict with the old value.
This fixes https://github.com/llvm/llvm-project/issues/61419.
Differential Revision: https://reviews.llvm.org/D147263
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions