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 /llvm/lib/IR/Module.cpp | |
parent | 42cc7f3c524a0ede6b903486c588003fe12d9293 (diff) | |
download | llvm-d4df3825bd32277074b3859f5dea9593139147fb.zip llvm-d4df3825bd32277074b3859f5dea9593139147fb.tar.gz llvm-d4df3825bd32277074b3859f5dea9593139147fb.tar.bz2 |
[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 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions