Skip to content

Commit

Permalink
Patch fix #1109 (#1346)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
jackkoenig and mergify[bot] authored Feb 19, 2020
1 parent d183168 commit aac6e17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chiselFrontend/src/main/scala/chisel3/RawModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ abstract class RawModule(implicit moduleCompileOptions: CompileOptions)
" name is already taken by another port!")
}
port.setRef(ModuleIO(this, _namespace.name(name)))
case None => Builder.error(s"Unable to name port $port in $this, " +
"try making it a public field of the Module")
case None =>
Builder.error(s"Unable to name port $port in $this, " +
"try making it a public field of the Module")
port.setRef(ModuleIO(this, "<UNNAMED>"))
}
}
}
Expand Down

0 comments on commit aac6e17

Please sign in to comment.