[PATCH] D31562: [coroutines] Fix building of new/delete expressions when get_return_object_on_allocation_failure() is present.

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 12 18:41:41 PDT 2017


EricWF added inline comments.


================
Comment at: lib/Sema/SemaCoroutine.cpp:680
+  // likely due to the scope at in which this function is called.
+  auto *VD = Result.getAsSingle<VarDecl>();
+  if (!VD) {
----------------
@rsmith is this the correct way to build a `DeclRefExpr` to an existing global?


https://reviews.llvm.org/D31562





More information about the cfe-commits mailing list