[Bitcode] Restore bitcast expression auto-upgrade
authorNikita Popov <npopov@redhat.com>
Wed, 29 Jun 2022 12:16:30 +0000 (14:16 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 29 Jun 2022 12:35:56 +0000 (14:35 +0200)
commit1271b8f57ab95b601b75b69cd957b9ee9f0c186c
tree29cbb4ccac8c0898bafd325fa7bfb7935ca101ae
parent30ea6a06364c4aad1175f2d1440a1ee2ffd8d3e0
[Bitcode] Restore bitcast expression auto-upgrade

Restore the autoupgrade from bitcast to ptrtoint+inttoptr, which
was lost as part of D127729.

This fixes the backwards compatibility issue noted in:
https://reviews.llvm.org/D127729#inline-1236519
llvm/include/llvm/IR/AutoUpgrade.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/IR/AutoUpgrade.cpp