diff options
| author | Changpeng Fang <changpeng.fang@amd.com> | 2024-05-20 13:37:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-20 13:37:01 -0700 |
| commit | 753f7e814514ddb2bb2fd837549d5958cf0ef343 (patch) | |
| tree | 318495f549bdebd7c76100360ab2e2f601953bd5 /lldb/test/API/python_api/debugger/TestDebuggerAPI.py | |
| parent | 1f07bfb92c2a62731a5ae3ec2d135e3869634c01 (diff) | |
[OpenCL] Fix an infinite loop in builidng AddrSpaceQualType (#92612)
In building AddrSpaceQualType
(https://github.com/llvm/llvm-project/pull/90048), there is a bug in
removeAddrSpaceQualType() for arrays. Arrays are weird because
qualifiers on the element type also count as qualifiers on the type, so
getSingleStepDesugaredType() can't remove the sugar on arrays. This
results in an infinite loop in removeAddrSpaceQualType. To fix the
issue, we use ASTContext::getUnqualifiedArrayType instead, which strips
the qualifier off the element type, then reconstruct the array type.
Diffstat (limited to 'lldb/test/API/python_api/debugger/TestDebuggerAPI.py')
0 files changed, 0 insertions, 0 deletions
