[clang] [llvm] [NVPTX] Fix for device function pointer having the same name as generated callprototype (PR #205639)
Daniel Donenfeld via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 14:49:13 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)
----------------
daniel-donenfeld wrote:
I can change this back and move the check for the callprototype arg into lowerOperand
https://github.com/llvm/llvm-project/pull/205639
More information about the llvm-commits
mailing list