[Attributor][FIX] Do not try to rewrite functions with casted call sites
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 12 Aug 2021 15:10:27 +0000 (10:10 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 12 Aug 2021 15:39:53 +0000 (10:39 -0500)
commit4e7d7cae674288aa518faadd63ef36608dbdbc13
tree9ee8d90c1bfbfdacfe0236a8cde51469264c09e6
parent5f543919b2646d36f2ddc1424acdd555bfcebe4f
[Attributor][FIX] Do not try to rewrite functions with casted call sites

If we cast a function at the call site it is hard(er) to get the rewrite
correct, let's not attempt it for now.

Fixes PR51448.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/IPConstantProp/arg-count-mismatch.ll
llvm/test/Transforms/Attributor/misc_crash.ll