aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/AutoUpgrade.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-06-29 14:16:30 +0200
committerNikita Popov <npopov@redhat.com>2022-06-29 14:35:56 +0200
commit1271b8f57ab95b601b75b69cd957b9ee9f0c186c (patch)
tree29cbb4ccac8c0898bafd325fa7bfb7935ca101ae /llvm/lib/IR/AutoUpgrade.cpp
parent30ea6a06364c4aad1175f2d1440a1ee2ffd8d3e0 (diff)
downloadllvm-1271b8f57ab95b601b75b69cd957b9ee9f0c186c.zip
llvm-1271b8f57ab95b601b75b69cd957b9ee9f0c186c.tar.gz
llvm-1271b8f57ab95b601b75b69cd957b9ee9f0c186c.tar.bz2
[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
Diffstat (limited to 'llvm/lib/IR/AutoUpgrade.cpp')
-rw-r--r--llvm/lib/IR/AutoUpgrade.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp
index 2a4c315..75594f9 100644
--- a/llvm/lib/IR/AutoUpgrade.cpp
+++ b/llvm/lib/IR/AutoUpgrade.cpp
@@ -4179,7 +4179,7 @@ Instruction *llvm::UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy,
return nullptr;
}
-Value *llvm::UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy) {
+Constant *llvm::UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy) {
if (Opc != Instruction::BitCast)
return nullptr;