diff options
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r-- | gcc/cp/mangle.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 5108950..707df8b 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -1975,18 +1975,19 @@ write_CV_qualifiers_for_type (const tree type) Note that we do not use cp_type_quals below; given "const int[3]", the "const" is emitted with the "int", not with the array. */ + cp_cv_quals quals = TYPE_QUALS (type); - if (TYPE_QUALS (type) & TYPE_QUAL_RESTRICT) + if (quals & TYPE_QUAL_RESTRICT) { write_char ('r'); ++num_qualifiers; } - if (TYPE_QUALS (type) & TYPE_QUAL_VOLATILE) + if (quals & TYPE_QUAL_VOLATILE) { write_char ('V'); ++num_qualifiers; } - if (TYPE_QUALS (type) & TYPE_QUAL_CONST) + if (quals & TYPE_QUAL_CONST) { write_char ('K'); ++num_qualifiers; |