Skip to content

Commit 96aba4d

Browse files
committed
Refers to new globalCons in agdaCoreCompile
1 parent ed302b4 commit 96aba4d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/Main.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,17 +259,14 @@ agdaCoreCompile env _ _ def = do
259259
, preSigCons = preSigCons
260260
}
261261
Core.ConstructorDefn cons -> do
262-
-- (diode-lang): Why is the "old" tcg_cons referenced here,
263-
-- if it was updated to `ntcg`?
264-
let (dID, cID) = tcg_cons Map.! defName
262+
-- It should not matter here whether one uses `tcg_cons` (old one) or `globalCons ntcg` (new one), but let's use the new one to be safe
263+
let (dID, cID) = globalCons ntcg Map.! defName
265264
liftIO $ writeIORef ioPreSig $
266265
PreSignature
267266
{ preSigDefs = preSigDefs
268267
, preSigData = preSigData
269268
, preSigCons = Map.insert (indexToNat dID, indexToNat cID) cons preSigCons
270269
}
271-
272-
-- (diode-lang): Health check signature here
273270
return $ pure def'
274271

275272

0 commit comments

Comments
 (0)