[PATCH] D34021: [coroutines] Fix co_await for range statement

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 7 22:15:20 PDT 2017


EricWF created this revision.

Currently we build the co_await expressions on the wrong implicit statements of the implicit ranged for; Specifically we build the co_await expression wrapping the range declaration, but it should wrap the begin expression.

This patch fixes co_await on range for.


https://reviews.llvm.org/D34021

Files:
  include/clang/Sema/Sema.h
  lib/Sema/SemaCoroutine.cpp
  lib/Sema/SemaStmt.cpp
  test/SemaCXX/coawait_range_for.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34021.101852.patch
Type: text/x-patch
Size: 13996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170608/bca6fed5/attachment.bin>


More information about the cfe-commits mailing list