[PATCH] D28835: [coroutines] NFC: Refactor Sema::CoroutineBodyStmt construction.

Gor Nishanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 12 19:54:21 PST 2017


GorNishanov marked an inline comment as done.
GorNishanov added a comment.

Preparing to land. Thank you very much for review!



================
Comment at: lib/Sema/SemaCoroutine.cpp:719
+
+  if (!PromiseRecordDecl)
+    return true;
----------------
EricWF wrote:
> I figured out what's going on. `PromiseRecordDecl` doesn't get initialized to null when `IsPromiseDependentType` is false. Initializing `PromiseRecordDecl` fixes the problem.
Good catch!


https://reviews.llvm.org/D28835





More information about the cfe-commits mailing list