[clang] [llvm] [NVPTX] Fix for device function pointer having the same name as generated callprototype (PR #205639)
Alex MacLean via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 9 14:59:43 PDT 2026
================
@@ -590,8 +592,31 @@ void NVPTXAsmPrinter::emitInstruction(const MachineInstr *MI) {
void NVPTXAsmPrinter::lowerToMCInst(const MachineInstr *MI, MCInst &OutMI) {
OutMI.setOpcode(MI->getOpcode());
- for (const auto MO : MI->operands())
- OutMI.addOperand(lowerOperand(MO));
+ for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I)
----------------
AlexMaclean wrote:
If we use an MCSymbol in the machine instruction, we should not need to change either.
https://github.com/llvm/llvm-project/pull/205639
More information about the cfe-commits
mailing list