Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
478f7b6c
Commit
478f7b6c
authored
Jul 14, 2008
by
Michael Beck
Browse files
- when printing tarvals, differentiate between tarval_bad and tarval_undefined
[r20461]
parent
04a4e050
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/tv/tv.c
View file @
478f7b6c
...
...
@@ -1564,7 +1564,11 @@ int tarval_snprintf(char *buf, size_t len, tarval *tv) {
case
irms_control_flow
:
case
irms_memory
:
case
irms_auxiliary
:
return
snprintf
(
buf
,
len
,
"<TV_OVERFLOW_BAD>"
);
if
(
tv
==
tarval_bad
)
return
snprintf
(
buf
,
len
,
"<TV_BAD>"
);
if
(
tv
==
tarval_undefined
)
return
snprintf
(
buf
,
len
,
"<TV_UNDEF>"
);
return
snprintf
(
buf
,
len
,
"<TV_???>"
);
}
return
0
;
...
...
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