We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54cad86 commit 4888380Copy full SHA for 4888380
src/common/Functions.scala
@@ -378,8 +378,8 @@ trait CGenTupledFunctions extends CGenFunctions with GenericGenUnboxedTupleAcces
378
override def emitNode(sym: Sym[Any], rhs: Def[Any]) = rhs match {
379
case Lambda(fun, UnboxedTuple(xs), y) =>
380
val retType = remap(getBlockResult(y).tp)
381
- stream.println("function<"+retType+"("+
382
- xs.map(s=>remap(s.tp)).mkString(",")+")> "+quote(sym)+
+ val retTp = if (cppExplicitFunRet == "true") "function<"+retType+"("+xs.map(s=>remap(s.tp)).mkString(",")+")>" else "auto"
+ stream.println(retTp+" "+quote(sym)+
383
" = [&]("+xs.map(s=>remap(s.tp)+" "+quote(s)).mkString(",")+") {")
384
emitBlock(y)
385
val z = getBlockResult(y)
0 commit comments