diff options
| author | Nikhil Kalra <1368497+nikalra@users.noreply.github.com> | 2024-07-03 23:49:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-04 08:49:33 +0200 |
| commit | 0ad6ac8c5338e42192bc006576397a02b838d265 (patch) | |
| tree | c9ef8b752c193d1f9fcad22e17bc42323d9596c8 /lldb/test/API/python_api/thread/TestThreadAPI.py | |
| parent | 948862b24d209ddcf5a93845e1ce327d108761ce (diff) | |
[NFC][MLIR] Fix: `alloca` promotion for `AllocationOpInterface` (#97672)
The std::optional returned by buildPromotedAlloc was directly
dereferenced and assumed to be non-null, even though the documentation
for AllocationOpInterface indicates that std::nullopt is a legal value
if buffer stack promotion is not supported (and is the default value
supplied by the TableGen interface file). This patch removes the direct
dereference so that the optional can be null-checked prior to use.
Co-authored-by: Nikhil Kalra <nkalra@apple.com>
Diffstat (limited to 'lldb/test/API/python_api/thread/TestThreadAPI.py')
0 files changed, 0 insertions, 0 deletions
