[IRLinker] Replace CallInstr with CallBase
authorGulfem Savrun Yeniceri <gulfem@google.com>
Sat, 14 Jan 2023 00:48:32 +0000 (00:48 +0000)
committerGulfem Savrun Yeniceri <gulfem@google.com>
Thu, 19 Jan 2023 18:28:02 +0000 (18:28 +0000)
commit117ecdd5789e6efd28505a8b84680020fd935cd1
tree4591e43a2f8e304a8527c16084bf52696dd64dfd
parent1f3f3c0ea724335e7eb518a8fe30990c9245875b
[IRLinker] Replace CallInstr with CallBase

This patch replaces CallInstr with CallBase to cover InvokeInstr
besides CallInstr while removing nocallback attribute on a call site.
It also extends drop-attribute.ll test to include a case for an invoke
instruction.

Differential Revision: https://reviews.llvm.org/D141740
llvm/lib/Linker/IRMover.cpp
llvm/test/Linker/drop-attribute.ll