Changeset ff29f08 for src/Parser/DeclarationNode.cc
- Timestamp:
- May 18, 2018, 2:09:21 PM (6 years ago)
- Branches:
- new-env, with_gc
- Children:
- 2472a19
- Parents:
- f6f0cca3 (diff), c7d8100c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
rf6f0cca3 rff29f08 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Apr 20 22:37:20201813 // Update Count : 10 6312 // Last Modified On : Wed May 16 09:37:17 2018 13 // Update Count : 1070 14 14 // 15 15 … … 526 526 527 527 DeclarationNode * DeclarationNode::addQualifiers( DeclarationNode * q ) { 528 if ( ! q ) { delete q; return this; }// empty qualifier528 if ( ! q ) { return this; } // empty qualifier 529 529 530 530 checkSpecifiers( q ); … … 560 560 561 561 checkQualifiers( type, q->type ); 562 if ( (builtin == Zero || builtin == One) && error.length() == 0 ) {562 if ( (builtin == Zero || builtin == One) && q->type->qualifiers.val != 0 && error.length() == 0 ) { 563 563 SemanticWarning( yylloc, Warning::BadQualifiersZeroOne, Type::QualifiersNames[ilog2( q->type->qualifiers.val )], builtinTypeNames[builtin] ); 564 // appendError( error, string( "questionable qualifiers" ) );565 564 } // if 566 565 addQualifiersToType( q->type, type ); … … 782 781 DeclarationNode * DeclarationNode::addPointer( DeclarationNode * p ) { 783 782 if ( p ) { 784 assert( p->type->kind == TypeData::Pointer || TypeData::Reference );783 assert( p->type->kind == TypeData::Pointer || p->type->kind == TypeData::Reference ); 785 784 setBase( p->type ); 786 785 p->type = nullptr;
Note: See TracChangeset
for help on using the changeset viewer.