diff options
author | YingChi Long <me@inclyc.cn> | 2022-08-10 01:11:41 +0800 |
---|---|---|
committer | YingChi Long <me@inclyc.cn> | 2022-08-10 08:42:59 +0800 |
commit | 55d3b79d159bab53b140860279486db8a1c0e4f3 (patch) | |
tree | b68d2dc7f44ffa89b324e50a289029570bf648ff /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | |
parent | c74a204826da331cb18023c626b0717d5b8a927d (diff) | |
download | llvm-55d3b79d159bab53b140860279486db8a1c0e4f3.zip llvm-55d3b79d159bab53b140860279486db8a1c0e4f3.tar.gz llvm-55d3b79d159bab53b140860279486db8a1c0e4f3.tar.bz2 |
[clang] add APValue type check in `TryPrintAsStringLiteral`
Fixes https://github.com/llvm/llvm-project/issues/57013
https://reviews.llvm.org/D115031 improved printing of non-type template
parameter args. But checking if the end of Inits is 0 without checking
if APValue is an integer, causes clang to segfault. This patch adds
the code to check the type. (May not be a proper bugfix.)
Reviewed By: aaron.ballman, lichray
Differential Revision: https://reviews.llvm.org/D131466
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions