aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorAndrew Gallagher <andrewjcg@gmail.com>2020-11-18 11:54:34 -0800
committerXun Li <xun@fb.com>2020-11-18 11:55:29 -0800
commitc6c8d4a13ebd5ce1c3c7e8632312ab8c2dc6afa0 (patch)
tree77d4e6be71c6a3823707a28915307e61c6382014 /lldb/source/Commands/CommandObjectThread.cpp
parent23aeadb89df38406dc4d929d08286f7ce31040eb (diff)
downloadllvm-c6c8d4a13ebd5ce1c3c7e8632312ab8c2dc6afa0.zip
llvm-c6c8d4a13ebd5ce1c3c7e8632312ab8c2dc6afa0.tar.gz
llvm-c6c8d4a13ebd5ce1c3c7e8632312ab8c2dc6afa0.tar.bz2
[modules] Fix crash in call to `FunctionDecl::setPure()`
In some cases, when deserializing a `CXXMethodDecl` of a `CXXSpecializationTemplateDecl`, the call to `FunctionDecl::setPure()` happens before the `DefinitionData` member has been populated (which appears to happen lower down in a `mergeRedeclarable` call), causing a crash (https://reviews.llvm.org/P8228). This diff fixes this by deferring the `FunctionDecl::setPure()` till after the `DefinitionData` has been filled in. Reviewed By: lxfind Differential Revision: https://reviews.llvm.org/D86853
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions