aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorDominik Montada <dominik.montada@hightec-rt.com>2020-03-27 16:47:37 +0100
committerDominik Montada <dominik.montada@hightec-rt.com>2020-06-11 10:47:49 +0200
commitf24e2e9eebde4b7a1d10b11a2c0acd6fe9905712 (patch)
tree8a5df7f0d5291c4371a21fe5fabb673613ac37b3 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parente87e55edbc798c1c73963151f114df775b1ec460 (diff)
downloadllvm-f24e2e9eebde4b7a1d10b11a2c0acd6fe9905712.zip
llvm-f24e2e9eebde4b7a1d10b11a2c0acd6fe9905712.tar.gz
llvm-f24e2e9eebde4b7a1d10b11a2c0acd6fe9905712.tar.bz2
[GlobalISel] fix crash in IRTranslator, MachineIRBuilder when translating @llvm.dbg.value intrinsic and using -debug
Summary: Fix crash when using -debug caused by the GlobalISel observer trying to print an incomplete DBG_VALUE instruction. This was caused by the MachineIRBuilder using buildInstr, which immediately inserts the instruction causing print, instead of using BuildMI to first build up the instruction and using insertInstr when finished. Add RUN-line to existing debug-insts.ll test with -debug flag set to make sure no crash is happening. Also fixed a missing %s in the 2nd RUN-line of the same test. Reviewers: t.p.northover, aditya_nandakumar, aemerson, dsanders, arsenm Reviewed By: arsenm Subscribers: wdng, arsenm, rovka, hiraditya, volkan, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76934
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions