OSDN Git Service

[Attributor][NFC] Do not (try to) simplify void values
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 12 Jan 2020 05:59:36 +0000 (23:59 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Fri, 24 Jan 2020 00:42:45 +0000 (18:42 -0600)
commit9dcf889d15dc28203a1e001c0a562920377b8337
tree67a90519035f7c6dca23d7b89fa6ff08d33b5d0e
parent47d7a81ba4bb4be2e6027fb44aa4cbfaffe9c3f2
[Attributor][NFC] Do not (try to) simplify void values

We might accidentally ask AAValueSimplify to simplify a void value. That
can lead to very interesting, and very wrong, results. We now handle
this case gracefully.
llvm/lib/Transforms/IPO/Attributor.cpp