Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Glasgow Haskell Compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
09209de4
Commit
09209de4
authored
Oct 24, 2012
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a case for CmmLabelDiffOff to cmmOffsetLit
parent
fb41ac52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
compiler/cmm/CmmUtils.hs
compiler/cmm/CmmUtils.hs
+2
-0
No files found.
compiler/cmm/CmmUtils.hs
View file @
09209de4
...
...
@@ -222,6 +222,8 @@ cmmRegOff reg byte_off = CmmRegOff reg byte_off
cmmOffsetLit
::
CmmLit
->
Int
->
CmmLit
cmmOffsetLit
(
CmmLabel
l
)
byte_off
=
cmmLabelOff
l
byte_off
cmmOffsetLit
(
CmmLabelOff
l
m
)
byte_off
=
cmmLabelOff
l
(
m
+
byte_off
)
cmmOffsetLit
(
CmmLabelDiffOff
l1
l2
m
)
byte_off
=
CmmLabelDiffOff
l1
l2
(
m
+
byte_off
)
cmmOffsetLit
(
CmmInt
m
rep
)
byte_off
=
CmmInt
(
m
+
fromIntegral
byte_off
)
rep
cmmOffsetLit
_
byte_off
=
pprPanic
"cmmOffsetLit"
(
ppr
byte_off
)
...
...
Write
Preview
Markdown
is supported
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