[PATCH] D41669: Use ODR debug type uniquing when enabled during function cloning

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 10:35:10 PST 2018


tejohnson created this revision.
tejohnson added reviewers: mehdi_amini, pcc.
Herald added subscribers: JDevlieghere, eraman.

This is exposed during ThinLTO compilation, when we import an alias by
creating a clone of the aliasee. Without this fix the debug type is not
uniqued and we get a duplicate.


https://reviews.llvm.org/D41669

Files:
  include/llvm/IR/LLVMContext.h
  lib/IR/LLVMContext.cpp
  lib/Transforms/Utils/CloneFunction.cpp
  test/ThinLTO/X86/Inputs/dicompositetype-unique-alias.ll
  test/ThinLTO/X86/dicompositetype-unique-alias.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41669.128432.patch
Type: text/x-patch
Size: 7275 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180102/d5cd7682/attachment.bin>


More information about the llvm-commits mailing list