diff options
author | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2024-01-29 10:08:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 10:08:09 -0800 |
commit | 7b0396faabce0cec470779ae5e3a851bedb2ac12 (patch) | |
tree | 7a101a0cfd5cd7f8c004565da8a68b718c89e9ee /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | 20737825c9122b6e0a8912731cfa7e0558fe025d (diff) | |
download | llvm-7b0396faabce0cec470779ae5e3a851bedb2ac12.zip llvm-7b0396faabce0cec470779ae5e3a851bedb2ac12.tar.gz llvm-7b0396faabce0cec470779ae5e3a851bedb2ac12.tar.bz2 |
[Clang][Sema] Fix crash when type used in return statement contains errors (#79788)
In Sema in `BuildReturnStmt(...)` when we try to determine is the type
is move eligible or copy elidable we don't currently check of the init
of the `VarDecl` contain errors or not. This can lead to a crash since
we may send a type that is not complete into `getTypeInfo(...)` which
does not allow this.
This fixes: https://github.com/llvm/llvm-project/issues/63244
https://github.com/llvm/llvm-project/issues/79745
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions