diff options
| author | Adam Izraelevitz | 2017-03-14 12:35:52 -0700 |
|---|---|---|
| committer | Adam Izraelevitz | 2017-03-14 12:48:26 -0700 |
| commit | caa32f8c04887c9930d101082f764ed36a5b63fb (patch) | |
| tree | bb85195671b8e3a426312a15376fba689f367e31 | |
| parent | db25e2285e7d8ea17f774da52c208fe02f3ee161 (diff) | |
Small fix
| -rw-r--r-- | src/main/scala/tutorial/lesson2-working-ir/AnalyzeCircuit.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/tutorial/lesson2-working-ir/AnalyzeCircuit.scala b/src/main/scala/tutorial/lesson2-working-ir/AnalyzeCircuit.scala index d0e831e9..bdf6f665 100644 --- a/src/main/scala/tutorial/lesson2-working-ir/AnalyzeCircuit.scala +++ b/src/main/scala/tutorial/lesson2-working-ir/AnalyzeCircuit.scala @@ -148,9 +148,9 @@ class AnalyzeCircuit extends Transform { // Execute the function walkExpression(ledger) on every [[Expression]] in e, // then handle if a [[Mux]]. e map walkExpression(ledger) match { - case Mux(cond, tval, fval, tpe) => - ledger.foundMux - e + case mux: Mux => + ledger.foundMux() + mux case notmux => notmux } } |
