diff --git a/tools/cgeist/Lib/clang-mlir.cc b/tools/cgeist/Lib/clang-mlir.cc index ea0850d8a9f0..6c5cecac2c47 100644 --- a/tools/cgeist/Lib/clang-mlir.cc +++ b/tools/cgeist/Lib/clang-mlir.cc @@ -844,8 +844,9 @@ ValueCategory MLIRScanner::VisitVarDecl(clang::VarDecl *decl) { auto name = Glob.CGM.getMangledName(decl); auto globalOp = gbuilder.create( module->getLoc(), - builder.getStringAttr(function.getName() + "@static@" + name + - "@init"), + builder.getStringAttr( + function.getName() + "@static@" + name + "@init@" + + to_string(reinterpret_cast(decl))), /*sym_visibility*/ mlir::StringAttr(), mlir::TypeAttr::get(mr), init_value, mlir::UnitAttr(), /*alignment*/ nullptr); SymbolTable::setSymbolVisibility(globalOp,