[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
================
@@ -1246,6 +1251,11 @@ bool NVPTXAsmPrinter::doInitialization(Module &M) {
GlobalsEmitted = false;
+ // Ensure globals are in the symbol table before ISel so any temp symbols are
+ // guaranteed not to collide with user symbols
+ for (const GlobalValue &GV : M.global_values())
+ TM.getSymbol(&GV);
----------------
AlexMaclean wrote:
Use `AsmPrinter::getSymbol`
https://github.com/llvm/llvm-project/pull/205639
More information about the cfe-commits
mailing list