summaryrefslogtreecommitdiff
path: root/src/Language/Fiddle/Compiler/Expansion.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-10-11 14:51:37 -0600
committerJosh Rahm <joshuarahm@gmail.com>2024-10-11 14:51:37 -0600
commit8082f91fd9fd1bdcbde5ebf74ed4710cdbb0c6c5 (patch)
tree0a2501639550a19c8c2914a601eeddad52443236 /src/Language/Fiddle/Compiler/Expansion.hs
parent5092619a63058d6b4a895ecdaef31fec7a8da4cc (diff)
downloadfiddle-8082f91fd9fd1bdcbde5ebf74ed4710cdbb0c6c5.tar.gz
fiddle-8082f91fd9fd1bdcbde5ebf74ed4710cdbb0c6c5.tar.bz2
fiddle-8082f91fd9fd1bdcbde5ebf74ed4710cdbb0c6c5.zip
Change register identifiers to Guarantee a value in qualification.
This remove the burden of generating names from the backend.
Diffstat (limited to 'src/Language/Fiddle/Compiler/Expansion.hs')
-rw-r--r--src/Language/Fiddle/Compiler/Expansion.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Language/Fiddle/Compiler/Expansion.hs b/src/Language/Fiddle/Compiler/Expansion.hs
index ca97fc4..11a68be 100644
--- a/src/Language/Fiddle/Compiler/Expansion.hs
+++ b/src/Language/Fiddle/Compiler/Expansion.hs
@@ -91,7 +91,7 @@ instance AdvanceStage CurrentStage ObjTypeDecl where
return
. case t of
TypeSubStructure {subStructureName = (Just n)} -> pushId n
- RegisterDecl {regIdent = (Just n)} -> pushId n
+ RegisterDecl {regIdent = (Perhaps (Just n))} -> pushId n
_ -> id
instance AdvanceStage CurrentStage FiddleDecl where