forked from github/verilator
Fix shadowing of vlSymsp member with argument (#3046).
This commit removes shadowing of the vlSymsp member of the emitted modules, allowing models to compile when -Werror=shadow is set. This may be useful when i.e., an external project which defines its own error flags depends on the verilated model.
This commit is contained in:
parent
2825940fad
commit
e7b6a7ef6a
@ -339,9 +339,9 @@ void EmitCImp::emitConfigureImp(AstNodeModule* modp) {
|
||||
}
|
||||
|
||||
puts("\nvoid " + modName + "::" + protect("__Vconfigure") + "(" + symClassName()
|
||||
+ "* vlSymsp, bool first) {\n");
|
||||
+ "* _vlSymsp, bool first) {\n");
|
||||
puts("if (false && first) {} // Prevent unused\n");
|
||||
puts("this->vlSymsp = vlSymsp;\n"); // First, as later stuff needs it.
|
||||
puts("this->vlSymsp = _vlSymsp;\n"); // First, as later stuff needs it.
|
||||
if (v3Global.opt.coverage()) {
|
||||
puts(modName + "__" + protect("_configure_coverage") + "(this, first);\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user