mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	ast: fix error condition causing assert to fail
type2str returns a string that doesn't start with $ or \, so it can't be assigned to an IdString.
This commit is contained in:
		
							parent
							
								
									b516c681fe
								
							
						
					
					
						commit
						9ca5a91724
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -2006,8 +2006,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
		for (auto f : log_files)
 | 
							for (auto f : log_files)
 | 
				
			||||||
			current_ast_mod->dumpAst(f, "verilog-ast> ");
 | 
								current_ast_mod->dumpAst(f, "verilog-ast> ");
 | 
				
			||||||
		type_name = type2str(type);
 | 
							log_file_error(filename, location.first_line, "Don't know how to generate RTLIL code for %s node!\n", type2str(type).c_str());
 | 
				
			||||||
		log_file_error(filename, location.first_line, "Don't know how to generate RTLIL code for %s node!\n", type_name.c_str());
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return RTLIL::SigSpec();
 | 
						return RTLIL::SigSpec();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue