[PATCH] D23841: Fix ThinLTO crash with debug info
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 24 09:01:18 PDT 2016
mehdi_amini created this revision.
mehdi_amini added a reviewer: tejohnson.
mehdi_amini added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.
Because the recent change about ODR type uniquing in the context,
we can reach types defined in another module during IR linking.
This triggered some assertions in case we IR link without starting
from an empty module. To alleviate that, we can self-map metadata
defined in the destination module so that they won't be visited.
https://reviews.llvm.org/D23841
Files:
include/llvm/IR/TypeFinder.h
lib/Linker/IRMover.cpp
test/ThinLTO/X86/Inputs/crash_debuginfo.ll
test/ThinLTO/X86/crash_debuginfo.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23841.69126.patch
Type: text/x-patch
Size: 31672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160824/c53cb231/attachment.bin>
More information about the llvm-commits
mailing list