File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -354,10 +354,9 @@ main [const-decl Name (some BodySkel) TyWPSkel] :- !, std.do! [
354354 factory-alias->gref FactoryAlias Factory,
355355 std.assert! (factory-nparams Factory NParams) "Not a factory synthesized by HB",
356356 hack-section-discharging SectionBody SectionBodyHack,
357- if (Name = "_")
358- (TheFactory = SectionBodyHack)
359- (hb-add-const Name SectionBodyHack _ @transparent! C,
360- TheFactory = (global (const C))),
357+ if (Name = "_") (RealName is "HB_unnamed_factory_" ^ {std.any->string {new_int} }) (RealName = Name),
358+ hb-add-const RealName SectionBodyHack _ @transparent! C,
359+ TheFactory = (global (const C)),
361360 std.appendR {coq.mk-n-holes NParams} [TheType|_] Args,
362361 with -attributes (main-declare-instance TheType TheFactory Clauses),
363362
You can’t perform that action at this time.
0 commit comments