[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
Thu Sep 10 08:48:44 PDT 2026
================
@@ -937,12 +942,12 @@ void NVPTXAsmPrinter::emitFunctionBodyStart() {
SmallString<128> Str;
raw_svector_ostream O(Str);
emitDemotedVars(&MF->getFunction(), O);
+ OutStreamer->emitRawText(O.str());
const auto *MFI = MF->getInfo<NVPTXMachineFunctionInfo>();
- for (const auto &[Id, CB] : MFI->getCallPrototypes())
- emitCallPrototype(*CB, Id, O);
-
- OutStreamer->emitRawText(O.str());
+ for (const auto &[CB, Symbol] : MFI->getCallPrototypes()) {
+ emitCallPrototype(*CB, Symbol);
+ }
----------------
AlexMaclean wrote:
Nit: remove {}
https://github.com/llvm/llvm-project/pull/205639
More information about the cfe-commits
mailing list