summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main/scala/chisel3/RawModule.scala
diff options
context:
space:
mode:
authorSchuyler Eldridge2020-01-22 14:03:47 -0500
committermergify[bot]2020-01-22 19:03:47 +0000
commit993ee4ed8b95e2c78f6fc54ecbd828ac06a32b8b (patch)
tree90f91edddde23b603511dde05ff53f44bcb4f025 /chiselFrontend/src/main/scala/chisel3/RawModule.scala
parent7341082e3c5b08dc9d1a01937b5aad55e9833603 (diff)
Change when/switch thunk type to Any (#1308)
* Change when thunks return type to Any Changes the type of the thunk for when and WhenContext methods from call-by-name Unit to call-by-name Any. This prevents a warning (-Ywarn-value-discard) where a when thunk is returning something other than Unit that is then discarded, e.g., another WhenContext. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> * Change switch thunk return to type to Any Changes the type of switch thunks from call-by-name Unit to call-by-name Any. This prevents a warning (-Ywarn-value-discard) when the internals of a switch block return something other than Unit which is then discarded. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/RawModule.scala')
0 files changed, 0 insertions, 0 deletions