diff options
| author | Andrew Waterman | 2015-08-13 18:19:01 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2015-08-13 18:19:42 -0700 |
| commit | ac5bf6a4c953fe39fa97d77bc620c515dc9e1622 (patch) | |
| tree | 07ae3cb60765446ba336527c41e571dfb6dca28d /src/main/scala/Chisel/Utils.scala | |
| parent | 178b3ed69661156f4c120c3b0be18d44a5d474af (diff) | |
Make error reporting reentrant
Diffstat (limited to 'src/main/scala/Chisel/Utils.scala')
| -rw-r--r-- | src/main/scala/Chisel/Utils.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/Chisel/Utils.scala b/src/main/scala/Chisel/Utils.scala index be675da5..262d7c8e 100644 --- a/src/main/scala/Chisel/Utils.scala +++ b/src/main/scala/Chisel/Utils.scala @@ -143,9 +143,9 @@ class SwitchContext[T <: Bits](cond: T) { } object is { // Begin deprecation of non-type-parameterized is statements. - def apply(v: Iterable[Bits])(block: => Unit) { ChiselError.error("The 'is' keyword may not be used outside of a switch.") } - def apply(v: Bits)(block: => Unit) { ChiselError.error("The 'is' keyword may not be used outside of a switch.") } - def apply(v: Bits, vr: Bits*)(block: => Unit) { ChiselError.error("The 'is' keyword may not be used outside of a switch.") } + def apply(v: Iterable[Bits])(block: => Unit) { Builder.error("The 'is' keyword may not be used outside of a switch.") } + def apply(v: Bits)(block: => Unit) { Builder.error("The 'is' keyword may not be used outside of a switch.") } + def apply(v: Bits, vr: Bits*)(block: => Unit) { Builder.error("The 'is' keyword may not be used outside of a switch.") } } object switch { |
