Skip to content

Commit d036146

Browse files
Fix non-void function does not return
1 parent 53a0c36 commit d036146

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ RValue CIRGenFunction::emitCoroutineFrame() {
103103
return RValue::get(curCoro.data->coroBegin);
104104
}
105105
cgm.errorNYI("NYI");
106+
return RValue();
106107
}
107108

108109
static void createCoroData(CIRGenFunction &cgf,

0 commit comments

Comments
 (0)