Fix -fsplit-lto-unit with ifuncs
authorDaniel Kiss <daniel.kiss@arm.com>
Tue, 21 Mar 2023 09:46:57 +0000 (10:46 +0100)
committerDaniel Kiss <daniel.kiss@arm.com>
Tue, 21 Mar 2023 14:36:13 +0000 (15:36 +0100)
commit83dc4734ba69da95d8c879bb174a1169b3f9e0b8
tree8626ec042cebae480760917ced082eb28a2f76e8
parent042783f556639cd5c3b2f4db67c6eeacea53459e
Fix -fsplit-lto-unit with ifuncs

ifuncs can't take part of the whole-program devirtualization so no need them to be copied to the merged module.
The corresponding resolver function also kept out which caused the crash.

Fixes #60962 #57870

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D144982
llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
llvm/test/ThinLTO/X86/ifunc_splitlto.ll [new file with mode: 0644]