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 ef6a27f commit 5c30222Copy full SHA for 5c30222
src/internal/CCodegen.scala
@@ -46,6 +46,8 @@ trait CCodegen extends CLikeCodegen with CppHostTransfer {
46
override def emitValDef(sym: Sym[Any], rhs: String): Unit = {
47
if (!isVoidType(sym.tp))
48
stream.println(remapWithRef(sym.tp) + quote(sym) + " = " + rhs + ";")
49
+ else // we might still want the RHS for its effects
50
+ stream.println(rhs + ";")
51
}
52
53
override def emitVarDef(sym: Sym[Variable[Any]], rhs: String): Unit = {
0 commit comments