[all-commits] [llvm/llvm-project] db1375: Surface error for plain return statement in corout...
ivanaivanovska via All-commits
all-commits at lists.llvm.org
Fri Aug 2 04:49:32 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: db1375f6d907f1af34c03b5174b7e0432f615d21
https://github.com/llvm/llvm-project/commit/db1375f6d907f1af34c03b5174b7e0432f615d21
Author: ivanaivanovska <iivanovska at google.com>
Date: 2024-08-02 (Fri, 02 Aug 2024)
Changed paths:
M clang/lib/Sema/SemaCoroutine.cpp
M clang/lib/Sema/SemaStmt.cpp
M clang/test/SemaCXX/coroutines.cpp
Log Message:
-----------
Surface error for plain return statement in coroutine earlier (#100985)
When a plain return statement was used in a coroutine, the error "return
statement not allowed in coroutine" was surfaced too late (e.g. after
other errors in the return statement). Surfacing it earlier now, to make
the issue more obvious.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list