[DeadArgElim] Check that function type is the same
authorNikita Popov <npopov@redhat.com>
Mon, 14 Feb 2022 13:07:22 +0000 (14:07 +0100)
committerNikita Popov <npopov@redhat.com>
Mon, 14 Feb 2022 13:08:42 +0000 (14:08 +0100)
commit41c5a762e5334419fdf0f488de1361afba63cbbf
treeec7f1861bd5cbbbf9663de4f6302616d73f4f3cb
parentc72fdad71b6a9e5ca39fdcc7cb8bd476ecc5bbd7
[DeadArgElim] Check that function type is the same

If the function types differ, the call arguments don't necessarily
correspon to the function arguments. It's likely not worthwhile to
handle this more precisely, but at least we shouldn't crash.
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
llvm/test/Transforms/DeadArgElim/opaque-ptr.ll [new file with mode: 0644]