[PATCH] D130642: [GlobalISel] Handle IntToPtr constants in dbg.value
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 27 13:56:47 PDT 2022
nikic added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:103
+ if (CE->getOpcode() == Instruction::IntToPtr)
+ return cast<const Constant>(CE->getOperand(0));
+ return &C;
----------------
What's the `cast<const Constant>()` for?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130642/new/
https://reviews.llvm.org/D130642
More information about the llvm-commits
mailing list