addrs: Fix infinite recursion in AbsInputVariableInstance.String

This commit is contained in:
Martin Atkins 2020-01-03 17:43:55 -08:00
parent b62e9a7227
commit 5771db6696
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func (m ModuleInstance) InputVariable(name string) AbsInputVariableInstance {
func (v AbsInputVariableInstance) String() string {
if len(v.Module) == 0 {
return v.String()
return v.Variable.String()
}
return fmt.Sprintf("%s.%s", v.Module.String(), v.Variable.String())