diff options
| author | Schuyler Eldridge | 2018-12-21 11:47:33 -0500 |
|---|---|---|
| committer | GitHub | 2018-12-21 11:47:33 -0500 |
| commit | 93e1f334de0579f513c3ffa03cb5f06c622b4fa8 (patch) | |
| tree | d6da0dfea409d43c2c271fd1de729a88a04da554 /src/main/scala/firrtl/Compiler.scala | |
| parent | 3655ae091249a72bd424073cfb4a382a5ab170c6 (diff) | |
| parent | c727961ca6461d90858c4c66d8b01897293fc0ab (diff) | |
Merge pull request #976 from seldridge/none-compiler-form
Fix NoneCompiler outputForm
Diffstat (limited to 'src/main/scala/firrtl/Compiler.scala')
| -rw-r--r-- | src/main/scala/firrtl/Compiler.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/Compiler.scala b/src/main/scala/firrtl/Compiler.scala index 80ba42c4..87662800 100644 --- a/src/main/scala/firrtl/Compiler.scala +++ b/src/main/scala/firrtl/Compiler.scala @@ -373,6 +373,10 @@ trait Compiler extends LazyLogging { */ def transforms: Seq[Transform] + require(transforms.size >= 1, + s"Compiler transforms for '${this.getClass.getName}' must have at least ONE Transform! " + + "Use IdentityTransform if you need an identity/no-op transform.") + // Similar to (input|output)Form on [[Transform]] but derived from this Compiler's transforms def inputForm: CircuitForm = transforms.head.inputForm def outputForm: CircuitForm = transforms.last.outputForm |
