]> granicus.if.org Git - llvm/commit
[Attributor] Fix: Gracefully handle non-instruction users
authorJohannes Doerfert <jdoerfert@anl.gov>
Wed, 21 Aug 2019 21:48:56 +0000 (21:48 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Wed, 21 Aug 2019 21:48:56 +0000 (21:48 +0000)
commit62899a217485a3d66ca1e0bc080958989eb7114d
treebbd1a7db1d8af0db2b3031884e1a49483aa44c34
parenta8e86b955e3001132d2d9a25b5dd8027842a2e2a
[Attributor] Fix: Gracefully handle non-instruction users

Function can have users that are not instructions, e.g., bitcasts. For
now, we simply give up when we see them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369588 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/Attributor.cpp
test/Transforms/FunctionAttrs/misc.ll [new file with mode: 0644]