diff options
| author | Reshabh Sharma <Reshabhkumar.Sharma@amd.com> | 2021-06-28 19:18:39 +0530 |
|---|---|---|
| committer | Reshabh Sharma <Reshabhkumar.Sharma@amd.com> | 2021-06-28 19:24:26 +0530 |
| commit | ae983de6cce23dfeeb629395f86528e911218ba4 (patch) | |
| tree | 0de39f39d16786f5cba9d50fb241ac70a42004f0 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 13b2fba2398d433a5f5f9534c737c434dfb0c7b3 (diff) | |
| download | llvm-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
