Skip to content

Commit 6caf6e3

Browse files
authored
Merge pull request #230 from diffblue/verilog-use-display-name
Verilog: use display_name in two warnings
2 parents 17443d1 + 1f0e315 commit 6caf6e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/verilog/verilog_synthesis.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2790,7 +2790,8 @@ void verilog_synthesist::synth_assignments(transt &trans)
27902790

27912791
if(assignment.type==event_guardt::COMBINATIONAL)
27922792
{
2793-
warning() << "Making " << symbol.name << " a wire" << eom;
2793+
warning().source_location = symbol.location;
2794+
warning() << "Making " << symbol.display_name() << " a wire" << eom;
27942795
symbol.is_state_var=false;
27952796
}
27962797

src/verilog/verilog_typecheck_expr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,7 @@ void verilog_typecheck_exprt::convert_symbol(exprt &expr)
763763
{
764764
// this should become an error
765765
warning().source_location=expr.source_location();
766-
warning() << "implicit definition of wire "
767-
<< full_identifier << eom;
766+
warning() << "implicit wire " << symbol->display_name() << eom;
768767
expr.type()=symbol->type;
769768
expr.set(ID_identifier, symbol->name);
770769
}

0 commit comments

Comments
 (0)