diff options
| author | Alex Zinenko <zinenko@google.com> | 2021-07-08 16:07:09 +0200 |
|---|---|---|
| committer | Alex Zinenko <zinenko@google.com> | 2021-07-09 17:52:43 +0200 |
| commit | d4df3825bd32277074b3859f5dea9593139147fb (patch) | |
| tree | 5088d68ce29c950a5e54918f97fac60418e17f7b /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 42cc7f3c524a0ede6b903486c588003fe12d9293 (diff) | |
[mlir] don't drop undef initializers in translation to LLVM IR
LLVM IR allows globals with external linkage to have initializers, including
undef. The translation was incorrectly using undef as a indicator that the
initializer should be ignored in translation, leading to the impossibility to
create an external global with an explicit undef initializer. Fix this and use
nullptr as a marker instead.
Reviewed By: wsmoses
Differential Revision: https://reviews.llvm.org/D105631
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
