diff options
| author | Jim Lawson | 2017-07-07 13:00:47 -0700 |
|---|---|---|
| committer | GitHub | 2017-07-07 13:00:47 -0700 |
| commit | 794812fc2f18767416c2d4c39605f4d8016cc4dc (patch) | |
| tree | 2f60b9716e8d04de32e764a0018dae2223868550 /src/main/scala/chisel3 | |
| parent | bb9bc4752b4d6d8f0ee05094431941a6ddde66d0 (diff) | |
Ensure IO is non-null before attempting to autoWrapPorts. (#643)
Diffstat (limited to 'src/main/scala/chisel3')
| -rw-r--r-- | src/main/scala/chisel3/compatibility.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/chisel3/compatibility.scala b/src/main/scala/chisel3/compatibility.scala index b9357bbd..4223d63b 100644 --- a/src/main/scala/chisel3/compatibility.scala +++ b/src/main/scala/chisel3/compatibility.scala @@ -238,7 +238,7 @@ package object Chisel { // scalastyle:ignore package.object.name this(Option(_clock), Option(_reset))(moduleCompileOptions) override def _autoWrapPorts() = { - if (!_ioPortBound()) { + if (!_ioPortBound() && io != null) { IO(io) } } |
