Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
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
Alex D
GHC
Commits
1230d6f9
Commit
1230d6f9
authored
Aug 16, 2019
by
Ömer Sinan Ağacan
Committed by
Marge Bot
Aug 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo fix in CoreToStg
parent
ac73c1b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
compiler/stgSyn/CoreToStg.hs
compiler/stgSyn/CoreToStg.hs
+5
-5
No files found.
compiler/stgSyn/CoreToStg.hs
View file @
1230d6f9
...
@@ -268,7 +268,7 @@ coreTopBindToStg dflags this_mod env ccs (NonRec id rhs)
...
@@ -268,7 +268,7 @@ coreTopBindToStg dflags this_mod env ccs (NonRec id rhs)
bind
=
StgTopLifted
$
StgNonRec
id
stg_rhs
bind
=
StgTopLifted
$
StgNonRec
id
stg_rhs
in
in
assertConsistentCaInfo
dflags
id
bind
(
ppr
bind
)
assertConsistentCa
f
Info
dflags
id
bind
(
ppr
bind
)
-- NB: previously the assertion printed 'rhs' and 'bind'
-- NB: previously the assertion printed 'rhs' and 'bind'
-- as well as 'id', but that led to a black hole
-- as well as 'id', but that led to a black hole
-- where printing the assertion error tripped the
-- where printing the assertion error tripped the
...
@@ -296,17 +296,17 @@ coreTopBindToStg dflags this_mod env ccs (Rec pairs)
...
@@ -296,17 +296,17 @@ coreTopBindToStg dflags this_mod env ccs (Rec pairs)
bind
=
StgTopLifted
$
StgRec
(
zip
binders
stg_rhss
)
bind
=
StgTopLifted
$
StgRec
(
zip
binders
stg_rhss
)
in
in
assertConsistentCaInfo
dflags
(
head
binders
)
bind
(
ppr
binders
)
assertConsistentCa
f
Info
dflags
(
head
binders
)
bind
(
ppr
binders
)
(
env'
,
ccs'
,
bind
)
(
env'
,
ccs'
,
bind
)
-- | CAF consistency issues will generally result in segfaults and are quite
-- | CAF consistency issues will generally result in segfaults and are quite
-- difficult to debug (see #16846). We enable checking of the
-- difficult to debug (see #16846). We enable checking of the
-- 'consistentCafInfo' invariant with @-dstg-lint@ to increase the chance that
-- 'consistentCafInfo' invariant with @-dstg-lint@ to increase the chance that
-- we catch these issues.
-- we catch these issues.
assertConsistentCaInfo
::
DynFlags
->
Id
->
StgTopBinding
->
SDoc
->
a
->
a
assertConsistentCa
f
Info
::
DynFlags
->
Id
->
StgTopBinding
->
SDoc
->
a
->
a
assertConsistentCaInfo
dflags
id
bind
err_doc
result
assertConsistentCa
f
Info
dflags
id
bind
err_doc
result
|
gopt
Opt_DoStgLinting
dflags
||
debugIsOn
|
gopt
Opt_DoStgLinting
dflags
||
debugIsOn
,
not
$
consistentCafInfo
id
bind
=
pprPanic
"assertConsistentCaInfo"
err_doc
,
not
$
consistentCafInfo
id
bind
=
pprPanic
"assertConsistentCa
f
Info"
err_doc
|
otherwise
=
result
|
otherwise
=
result
-- Assertion helper: this checks that the CafInfo on the Id matches
-- Assertion helper: this checks that the CafInfo on the Id matches
...
...
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