================
@@ -200,6 +200,105 @@ void 
CIRGenModule::emitGlobalFunctionDefinition(clang::GlobalDecl gd,
   }
 }
 
+mlir::Operation *CIRGenModule::getGlobalValue(StringRef name) {
+  mlir::Operation *global = mlir::SymbolTable::lookupSymbolIn(theModule, name);
+  if (!global)
----------------
erichkeane wrote:

Er... what does this do?  This 'if' ends up being a do-nothing here, since it 
just returns 'global' anyway.

https://github.com/llvm/llvm-project/pull/135095
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to