On 3/25/20 5:40 PM, Iain Sandoe wrote:
Nathan Sidwell <nat...@acm.org> wrote:

On 3/24/20 2:08 PM, Iain Sandoe wrote:

    tree suspend = TREE_VEC_ELT (awaiter_calls, 1); /* await_suspend().  */
+  tree susp_type;
+  if (tree fndecl = cp_get_callee_fndecl_nofold (suspend))
+    susp_type = TREE_TYPE (TREE_TYPE (fndecl));
+  else
+    susp_type = TREE_TYPE (suspend);

Why, when there's a call of a named function, is it that TREE_TYPE (suspend) is 
insufficient? You mentioned TARGET_EXPR, but why is their type differenty?

it isn’t - the code imported from an earlier impl. was jumping through hoops 
not needed here - changed to:
"susp_type = TREE_TYPE (suspend);”

good, that makes sense, thanks!

Patch is good to commit now, thanks

nathan
--
Nathan Sidwell

Reply via email to