mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
some minor tidying of -O gen-C++ sources
This commit is contained in:
parent
44a3ed676b
commit
769a3d958a
9 changed files with 56 additions and 46 deletions
|
@ -352,7 +352,7 @@ void CPPCompile::GenWhenStmt(const WhenStmt* w) {
|
|||
|
||||
if ( ret_type && ret_type->Tag() != TYPE_VOID ) {
|
||||
// Note, ret_type can be active but we *still* don't have
|
||||
// a return type, due to the faked-up "any" return type
|
||||
// a return value, due to the faked-up "any" return type
|
||||
// associated with "when" lambdas, so check for that case.
|
||||
Emit("if ( curr_t )");
|
||||
StartBlock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue