diff options
| author | Sirraide <aeternalmail@gmail.com> | 2024-04-22 18:41:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-22 18:41:36 +0200 |
| commit | b6628c24ef017138b8d6eb288e94c141e7c846b0 (patch) | |
| tree | 3dd098930683c4800df74d3e34f72607957f5142 /lldb/source/Plugins/ScriptInterpreter/Python | |
| parent | c4c54af569f7c17bc89ae73c3e5c5c4be0a586b9 (diff) | |
| download | llvm-b6628c24ef017138b8d6eb288e94c141e7c846b0.zip llvm-b6628c24ef017138b8d6eb288e94c141e7c846b0.tar.gz llvm-b6628c24ef017138b8d6eb288e94c141e7c846b0.tar.bz2 | |
[Clang] Fix crash on invalid size in user-defined `static_assert` message (#89420)
This addresses two problems observed in #89407 wrt user-defined
`static_assert` messages:
1. In `Expr::EvaluateCharRangeAsString`, we were calling `getExtValue()`
instead of `getZExtValue()`, which would assert if a negative or very
large number was returned from `size()`.
2. If the value could not be converted to `std::size_t`, attempting to
diagnose that would crash because `ext_cce_narrowing` was missing two
`%select` cases.
This fixes #89407.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
