diff options
| author | Evgenii Stepanov <eugenis@google.com> | 2020-02-06 15:07:20 -0800 |
|---|---|---|
| committer | Evgenii Stepanov <eugenis@google.com> | 2020-02-06 15:09:58 -0800 |
| commit | 7dd2810907b87fbecb2ca7c111c2ad37bf1563e9 (patch) | |
| tree | a10b705ef22b80136e8ccc74a2935f66a2846338 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | ac8a12c874cc7fb133f470549a2a31c59bb4243e (diff) | |
Fix MSAN failure on Function destruction
Summary:
When Function is destroyed, GlobalValue base class is destroyed, then
Value destructor would call use_empty, which ultimately attempts to
downcast 'this' to GlobalValue. This is UB, and is caught my MSAN as
accessing uninitialized memory.
Call materialized_use_empty, which doesn't call
assertModuleIsMaterializedImpl().
Reviewers: eugenis
Reviewed By: eugenis
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D74161
Patch by Antonio Maiorano.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
