mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	verilog: fix leaking of type names in parser
This commit is contained in:
		
							parent
							
								
									b57e47fad8
								
							
						
					
					
						commit
						c6681508f1
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -692,6 +692,7 @@ wire_type_token: | ||||||
| 		astbuf3->is_custom_type = true; | 		astbuf3->is_custom_type = true; | ||||||
| 		astbuf3->children.push_back(new AstNode(AST_WIRETYPE)); | 		astbuf3->children.push_back(new AstNode(AST_WIRETYPE)); | ||||||
| 		astbuf3->children.back()->str = *$1; | 		astbuf3->children.back()->str = *$1; | ||||||
|  | 		delete $1; | ||||||
| 	} | | 	} | | ||||||
| 	TOK_WOR { | 	TOK_WOR { | ||||||
| 		astbuf3->is_wor = true; | 		astbuf3->is_wor = true; | ||||||
|  | @ -1458,6 +1459,7 @@ param_type: | ||||||
| 		astbuf1->is_custom_type = true; | 		astbuf1->is_custom_type = true; | ||||||
| 		astbuf1->children.push_back(new AstNode(AST_WIRETYPE)); | 		astbuf1->children.push_back(new AstNode(AST_WIRETYPE)); | ||||||
| 		astbuf1->children.back()->str = *$1; | 		astbuf1->children.back()->str = *$1; | ||||||
|  | 		delete $1; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| param_decl: | param_decl: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue