summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/thread/TestThreadAPI.py
diff options
context:
space:
mode:
authorNikhil Kalra <1368497+nikalra@users.noreply.github.com>2024-07-03 23:49:33 -0700
committerGitHub <noreply@github.com>2024-07-04 08:49:33 +0200
commit0ad6ac8c5338e42192bc006576397a02b838d265 (patch)
treec9ef8b752c193d1f9fcad22e17bc42323d9596c8 /lldb/test/API/python_api/thread/TestThreadAPI.py
parent948862b24d209ddcf5a93845e1ce327d108761ce (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