Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
ddd68e60
Commit
ddd68e60
authored
Mar 13, 2002
by
simonmar
Browse files
[project @ 2002-03-13 13:48:32 by simonmar]
Cope with VoidRep fields in a static constructor.
parent
eb7d1ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/nativeGen/AbsCStixGen.lhs
View file @
ddd68e60
...
...
@@ -231,10 +231,13 @@ Here we handle top-level things, like @CCodeBlock@s and
= returnUs (\xs -> table ++ xs)
where
table = StData PtrRep [StCLbl (infoTableLabelFromCI cl_info)] :
map
do_one_amode amodes
foldr
do_one_amode
[]
amodes
do_one_amode amode
= StData (promote_to_word (getAmodeRep amode)) [a2stix amode]
do_one_amode amode rest
| rep == VoidRep = rest
| otherwise = StData (promote_to_word rep) [a2stix amode] : rest
where
rep = getAmodeRep amode
-- We need to promote any item smaller than a word to a word
promote_to_word pk
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment