[AutoUpgrade] Simplify code
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 11 Aug 2020 11:20:39 +0000 (13:20 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 11 Aug 2020 11:22:58 +0000 (13:22 +0200)
commit8134c2c7ffed3b3b4bd340174ad3134f509ebd47
tree9cea1e7de5c1c9d71c978c9df7c7d65c712d812e
parent85c7e89f3b334a66df63d760d7951ee9fa2a5df5
[AutoUpgrade] Simplify code

No need to set the name on an instruction that's going away, just move
it from the old instruction to the new one.
llvm/lib/IR/AutoUpgrade.cpp