Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
meta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
meta
Commits
4e51bca1
Commit
4e51bca1
authored
3 months ago
by
Thibault Martin
Browse files
Options
Downloads
Patches
Plain Diff
[kernel compatiblity] Use records for Cil_types.typ
parent
4e773997
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
meta_bindings.ml
+2
-2
2 additions, 2 deletions
meta_bindings.ml
with
2 additions
and
2 deletions
meta_bindings.ml
+
2
−
2
View file @
4e51bca1
...
...
@@ -119,8 +119,8 @@ let add_ghost_code flags =
let
base_type
=
Logic_utils
.
logicCType
typ
in
(* The _set is either a fixed array or a pointer *)
let
ctype
=
match
flags
.
static_bindings
with
|
Some
n
->
TA
rray
(
base_type
,
Some
(
Cil
.
integer
~
loc
:
unkloc
n
)
,
[]
)
|
None
->
TP
tr
(
base_type
,
[]
)
|
Some
n
->
Cil_const
.
mk_ta
rray
base_type
(
Some
(
Cil
.
integer
~
loc
:
unkloc
n
))
|
None
->
Cil_const
.
mk_tp
tr
base_type
in
let
var
=
Cil
.
makeGlobalVar
(
setname
name
)
ctype
in
let
svar
=
Cil
.
makeGlobalVar
(
sizename
name
)
Cil_const
.
uintType
in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment