shafik added inline comments.

================
Comment at: clang/lib/AST/Interp/ByteCodeStmtGen.cpp:312
       return this->emitRet(*ReturnType, RS);
+    } else if (RE->getType()->isVoidType()) {
+      if (!this->visit(RE))
----------------
You could also guard the cleanup and `emitRet` above w/ this check, so as to 
avoid code repetition. 


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153649/new/

https://reviews.llvm.org/D153649

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to