aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorHongtao Yu <hoy@fb.com>2020-09-02 09:51:30 -0700
committerHongtao Yu <hoy@fb.com>2020-09-02 14:40:41 -0700
commitf09ccf89fbee976bcca77b374f69987c2e96e1ce (patch)
treee44f7df24d2684b38700221081fb061ab232ceba /llvm/lib/Support/ErrorHandling.cpp
parentde6caf871be79dc7549aebe4e4fb57d52f6ed202 (diff)
downloadllvm-f09ccf89fbee976bcca77b374f69987c2e96e1ce.zip
llvm-f09ccf89fbee976bcca77b374f69987c2e96e1ce.tar.gz
llvm-f09ccf89fbee976bcca77b374f69987c2e96e1ce.tar.bz2
[ThinLTO] Fix a metadata lost issue with DICompileUnit import.
For ThinLTO importing we don't need to import all the fields of the DICompileUnit, such as enums, macros, retained types lists. The importation of those fields were previously disabled by setting their value map entries to nullptr. Unfortunately a metadata node can be shared by multiple metadata operands. Setting the map entry to nullptr might result in not importing other metadata unexpectedly. The issue is fixed by explicitly setting the original DICompileUnit fields (still a copy of the source module metadata) to null. Reviewed By: wenlei, dblaikie Differential Revision: https://reviews.llvm.org/D86675
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
0 files changed, 0 insertions, 0 deletions