summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2021-09-02 22:21:51 +0200
committerMatheus Izvekov <mizvekov@gmail.com>2021-09-03 20:34:08 +0200
commitd98c34f4d7950f531661ba3f498222ccf6239a0f (patch)
tree427afe5a172049ea62baf005b7ea1012a16fab02 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.cpp
parentd0c064715c6c94567d2380b1425821695c3a64ed (diff)
[clang] fix error recovery ICE on copy elision when returing invalid variable
See PR51708. Attempting copy elision in dependent contexts with invalid variable, such as a variable with incomplete type, would cause a crash when attempting to calculate it's alignment. The fix is to just skip this optimization on invalid VarDecl, as otherwise this provides no benefit to error recovery: This functionality does not try to diagnose anything, it only calculates a flag which will affect where the variable will be allocated during codegen. Signed-off-by: Matheus Izvekov <mizvekov@gmail.com> Reviewed By: rtrieu Differential Revision: https://reviews.llvm.org/D109191
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions