diff options
| author | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2022-08-26 09:12:29 -0700 |
|---|---|---|
| committer | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2022-08-26 09:40:43 -0700 |
| commit | 21dfe482e13e3b64801372f8b3db75eeb85b3135 (patch) | |
| tree | 7dd9be026dd2db6e93237e516818fec2438f001d /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
| parent | f9445ae75c55ce4a0ff33bdaedefee00b9a27704 (diff) | |
| download | llvm-21dfe482e13e3b64801372f8b3db75eeb85b3135.zip llvm-21dfe482e13e3b64801372f8b3db75eeb85b3135.tar.gz llvm-21dfe482e13e3b64801372f8b3db75eeb85b3135.tar.bz2 | |
[Clang] Fix assert in Sema::LookupTemplateName so that it does not attempt an unconditional cast to TagType
In Sema::LookupTemplateName(...) seeks to assert that the ObjectType is complete
or being defined. If the type is incomplete it will attempt to unconditionally
cast it to a TagType and not all incomplete types are a TagType. For example the
type could be void or it could be an IncompleteArray.
This change adds an additional check to confirm it is a TagType before attempting
to check if it is incomplete or being defined
Differential Revision: https://reviews.llvm.org/D132712
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions
