projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ccdad4
)
Assert that no typerefs are passed to get_unqualified_type().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 15 Sep 2008 13:12:28 +0000
(13:12 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 15 Sep 2008 13:12:28 +0000
(13:12 +0000)
[r21968]
type.c
patch
|
blob
|
history
diff --git
a/type.c
b/type.c
index
99c73a9
..
c55b777
100644
(file)
--- a/
type.c
+++ b/
type.c
@@
-747,6
+747,8
@@
type_t *duplicate_type(const type_t *type)
*/
type_t *get_unqualified_type(type_t *type)
{
+ assert(!is_typeref(type));
+
if (type->base.qualifiers == TYPE_QUALIFIER_NONE)
return type;