================
@@ -464,8 +464,7 @@ static ExprResult buildPromiseCall(Sema &S, VarDecl 
*Promise,
 }
 
 VarDecl *Sema::buildCoroutinePromise(SourceLocation Loc) {
-  assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
----------------
TPPPP72 wrote:

Is the assumption underlying this assertion too strong?

https://github.com/llvm/llvm-project/pull/217110
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to