We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e703db1 commit f97add5Copy full SHA for f97add5
tools/cgeist/Lib/clang-mlir.cc
@@ -844,8 +844,9 @@ ValueCategory MLIRScanner::VisitVarDecl(clang::VarDecl *decl) {
844
auto name = Glob.CGM.getMangledName(decl);
845
auto globalOp = gbuilder.create<mlir::memref::GlobalOp>(
846
module->getLoc(),
847
- builder.getStringAttr(function.getName() + "@static@" + name +
848
- "@init"),
+ builder.getStringAttr(
+ function.getName() + "@static@" + name + "@init@" +
849
+ to_string(reinterpret_cast<long long unsigned int>(decl))),
850
/*sym_visibility*/ mlir::StringAttr(), mlir::TypeAttr::get(mr),
851
init_value, mlir::UnitAttr(), /*alignment*/ nullptr);
852
SymbolTable::setSymbolVisibility(globalOp,
0 commit comments