================
@@ -4879,6 +4971,15 @@ void ConvertCIRToLLVMPass::runOnOperation() {
   llvm::TimeTraceScope scope("Convert CIR to LLVM Pass");
 
   mlir::ModuleOp module = getOperation();
+  // CIR type of each symbol before lowering, for lookups that find the
+  // already-lowered LLVM symbol after replacement.
+  CIRPreConversionTypeMap preConversionTypes;
----------------
xlauko wrote:

Please add a comment that this has to cover every symbol kind that can be 
replaced by an LLVM global, function or alias. Otherwise the next kind added 
quietly falls back to the adjusted type.

https://github.com/llvm/llvm-project/pull/238698
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to