diff options
author | Bob Haarman <llvm@inglorion.net> | 2019-05-08 22:11:02 +0000 |
---|---|---|
committer | Bob Haarman <llvm@inglorion.net> | 2019-05-08 22:11:02 +0000 |
commit | f3fb7fac3232a661ed914f796eb029cc5ce2e3e4 (patch) | |
tree | 8989d4a60b3fcf03177c663c0d798857dd11a0b1 /llvm/lib/CodeGen/LiveDebugValues.cpp | |
parent | 462403a5c8c67896648c70d3393a2d548b60bff4 (diff) | |
download | llvm-f3fb7fac3232a661ed914f796eb029cc5ce2e3e4.zip llvm-f3fb7fac3232a661ed914f796eb029cc5ce2e3e4.tar.gz llvm-f3fb7fac3232a661ed914f796eb029cc5ce2e3e4.tar.bz2 |
[lld-link] initialize targets and asmparsers before invoking lib
Summary:
When using lld-link to build static libraries containing object files
with module assembly, the program would crash with "Assertion `T &&
T->hasMCAsmParser()' failed". This change causes the code in lld-link
that initialized Targets, TargetInfos, and AsmParsers (which already
existed) to be run before entering the lib building path (which needs
it). This avoids the error (and is what llvm-lib and llvm-ar do, too).
Fixes PR41803.
Reviewers: ruiu, rnk, hans
Reviewed By: ruiu
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D61699
llvm-svn: 360295
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
0 files changed, 0 insertions, 0 deletions