aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorReshabh Sharma <Reshabhkumar.Sharma@amd.com>2021-06-28 19:18:39 +0530
committerReshabh Sharma <Reshabhkumar.Sharma@amd.com>2021-06-28 19:24:26 +0530
commitae983de6cce23dfeeb629395f86528e911218ba4 (patch)
tree0de39f39d16786f5cba9d50fb241ac70a42004f0 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent13b2fba2398d433a5f5f9534c737c434dfb0c7b3 (diff)
downloadllvm-ae983de6cce23dfeeb629395f86528e911218ba4.zip
llvm-ae983de6cce23dfeeb629395f86528e911218ba4.tar.gz
llvm-ae983de6cce23dfeeb629395f86528e911218ba4.tar.bz2
[InferAddressSpaces] NFC: For noop IntToPtr/PtrToInt pair cast to operator instead of PtrToInt
Compiler crashes at an assertion while casting operands to PtrToIntInst at some cases when ptrtoint is present as an explicit operand to inttoptr. Explicit instruction operator as operand can not be casted to an Instruction. This patch replaces cast from PtrToInst to Operator which are later checked for constant expressions. Differential Revision: https://reviews.llvm.org/D105002
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions