================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to