[DeadArgElim] Guard against function type mismatch
authorNikita Popov <npopov@redhat.com>
Mon, 14 Mar 2022 12:03:04 +0000 (13:03 +0100)
committerNikita Popov <npopov@redhat.com>
Mon, 14 Mar 2022 12:03:04 +0000 (13:03 +0100)
commit3ec44c22b1d60cf63ab93a4a9097d8c2a0ad08aa
tree0138db7384f69adaf9702bca5286869ccd63a82f
parentcf18ec445dcef8061fb523817ab5c36d1d08ceca
[DeadArgElim] Guard against function type mismatch

If the call function type and function type don't match, we should
consider the function live (there is effectively a bitcast
sitting in between).
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
llvm/test/Transforms/DeadArgElim/opaque-ptr.ll