summaryrefslogtreecommitdiff
path: root/coreMacros/src
diff options
context:
space:
mode:
Diffstat (limited to 'coreMacros/src')
-rw-r--r--coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala b/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala
index 7930138b..ab4cf8fb 100644
--- a/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala
+++ b/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala
@@ -75,6 +75,9 @@ class MuxTransform(val c: Context) extends SourceInfoTransformMacro {
class VecTransform(val c: Context) extends SourceInfoTransformMacro {
import c.universe._
+ def apply_ngen(n: c.Tree, gen: c.Tree): c.Tree = {
+ q"$thisObj.do_apply($n,$gen)($implicitSourceInfo, $implicitCompileOptions)"
+ }
def apply_elts(elts: c.Tree): c.Tree = {
q"$thisObj.do_apply($elts)($implicitSourceInfo, $implicitCompileOptions)"
}