{"action":"created","comment":{"url":"https://api.github.com/repos/chapel-lang/chapel/pulls/comments/54130819","id":54130819,"diff_hunk":"@@ -959,20 +1047,20 @@ static void propagateVar(Symbol* sym) {\n             //\n             SymExpr* se = toSymExpr(rhs->get(1));\n             debug(sym, \"ref has a wide _val, src %s (%d) of addr_of must be wide\\n\", se->var->cname, se->var->id);\n-            setWide(se);\n+            setWide(def, se);\n           }\n           else if (isRef(sym)) {\n             if (rhs->isPrimitive(PRIM_GET_MEMBER_VALUE) || \n                 rhs->isPrimitive(PRIM_GET_MEMBER)) {\n               SymExpr* field = toSymExpr(rhs->get(2));\n               debug(sym, \"widening field ref %s (%d)\\n\", field->var->cname, field->var->id);\n-              matchWide(sym, field->var);\n+              matchWide(def, field->var);\n             }\n             else if (rhs->isPrimitive(PRIM_GET_SVEC_MEMBER) || \n                      rhs->isPrimitive(PRIM_GET_SVEC_MEMBER_VALUE)) {\n-              widenTupleField(rhs, sym);\n+              widenTupleField(rhs, def);\n             }\n-            else if (rhs->isResolved()) {\n+            else if (rhs->isResolved() && isRef(def)) {","path":"compiler/passes/insertWideReferences.cpp","position":496,"original_position":496,"commit_id":"3bc514ec04e8d6108f812a6cf58ec47fdc770e97","original_commit_id":"3bc514ec04e8d6108f812a6cf58ec47fdc770e97","user":{"login":"benharsh","id":1883119,"avatar_url":"https://avatars.githubusercontent.com/u/1883119?v=3","gravatar_id":"","url":"https://api.github.com/users/benharsh","html_url":"https://github.com/benharsh","followers_url":"https://api.github.com/users/benharsh/followers","following_url":"https://api.github.com/users/benharsh/following{/other_user}","gists_url":"https://api.github.com/users/benharsh/gists{/gist_id}","starred_url":"https://api.github.com/users/benharsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benharsh/subscriptions","organizations_url":"https://api.github.com/users/benharsh/orgs","repos_url":"https://api.github.com/users/benharsh/repos","events_url":"https://api.github.com/users/benharsh/events{/privacy}","received_events_url":"https://api.github.com/users/benharsh/received_events","type":"User","site_admin":false},"body":"It was accidental, and redundant with the 'isRef(sym)' check above it. I'll remove it shortly.","created_at":"2016-02-25T17:23:01Z","updated_at":"2016-02-25T17:23:01Z","html_url":"https://github.com/chapel-lang/chapel/pull/3362#discussion_r54130819","pull_request_url":"https://api.github.com/repos/chapel-lang/chapel/pulls/3362","_links":{"self":{"href":"https://api.github.com/repos/chapel-lang/chapel/pulls/comments/54130819"},"html":{"href":"https://github.com/chapel-lang/chapel/pull/3362#discussion_r54130819"},"pull_request":{"href":"https://api.github.com/repos/chapel-lang/chapel/pulls/3362"}}},"pull_request":{"url":"https://api.github.com/repos/chapel-lang/chapel/pulls/3362","id":60596293,"html_url":"https://github.com/chapel-lang/chapel/pull/3362","diff_url":"https://github.com/chapel-lang/chapel/pull/3362.diff","patch_url":"https://github.com/chapel-lang/chapel/pull/3362.patch","issue_url":"https://api.github.com/repos/chapel-lang/chapel/issues/3362","number":3362,"state":"open","locked":false,"title":"Add support for tracking causes of wide pointers","user":{"login":"benharsh","id":1883119,"avatar_url":"https://avatars.githubusercontent.com/u/1883119?v=3","gravatar_id":"","url":"https://api.github.com/users/benharsh","html_url":"https://github.com/benharsh","followers_url":"https://api.github.com/users/benharsh/followers","following_url":"https://api.github.com/users/benharsh/following{/other_user}","gists_url":"https://api.github.com/users/benharsh/gists{/gist_id}","starred_url":"https://api.github.com/users/benharsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benharsh/subscriptions","organizations_url":"https://api.github.com/users/benharsh/orgs","repos_url":"https://api.github.com/users/benharsh/repos","events_url":"https://api.github.com/users/benharsh/events{/privacy}","received_events_url":"https://api.github.com/users/benharsh/received_events","type":"User","site_admin":false},"body":"This commit is the first part of a larger change that will depend on\r\nknowing which vars caused other vars to become wide pointers. This first\r\npart simply adds support for tracking and printing these causes.\r\n\r\nOther changes:\r\n- simplify logic for PRIM_RETURN\r\n- move debug timer to earlier location","created_at":"2016-02-24T23:13:36Z","updated_at":"2016-02-25T17:23:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6c6d1078df01f078c94f7558d5046aed1068bc2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chapel-lang/chapel/pulls/3362/commits","review_comments_url":"https://api.github.com/repos/chapel-lang/chapel/pulls/3362/comments","review_comment_url":"https://api.github.com/repos/chapel-lang/chapel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chapel-lang/chapel/issues/3362/comments","statuses_url":"https://api.github.com/repos/chapel-lang/chapel/statuses/3bc514ec04e8d6108f812a6cf58ec47fdc770e97","head":{"label":"benharsh:track-wide-causes","ref":"track-wide-causes","sha":"3bc514ec04e8d6108f812a6cf58ec47fdc770e97","user":{"login":"benharsh","id":1883119,"avatar_url":"https://avatars.githubusercontent.com/u/1883119?v=3","gravatar_id":"","url":"https://api.github.com/users/benharsh","html_url":"https://github.com/benharsh","followers_url":"https://api.github.com/users/benharsh/followers","following_url":"https://api.github.com/users/benharsh/following{/other_user}","gists_url":"https://api.github.com/users/benharsh/gists{/gist_id}","starred_url":"https://api.github.com/users/benharsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benharsh/subscriptions","organizations_url":"https://api.github.com/users/benharsh/orgs","repos_url":"https://api.github.com/users/benharsh/repos","events_url":"https://api.github.com/users/benharsh/events{/privacy}","received_events_url":"https://api.github.com/users/benharsh/received_events","type":"User","site_admin":false},"repo":{"id":21908961,"name":"chapel","full_name":"benharsh/chapel","owner":{"login":"benharsh","id":1883119,"avatar_url":"https://avatars.githubusercontent.com/u/1883119?v=3","gravatar_id":"","url":"https://api.github.com/users/benharsh","html_url":"https://github.com/benharsh","followers_url":"https://api.github.com/users/benharsh/followers","following_url":"https://api.github.com/users/benharsh/following{/other_user}","gists_url":"https://api.github.com/users/benharsh/gists{/gist_id}","starred_url":"https://api.github.com/users/benharsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benharsh/subscriptions","organizations_url":"https://api.github.com/users/benharsh/orgs","repos_url":"https://api.github.com/users/benharsh/repos","events_url":"https://api.github.com/users/benharsh/events{/privacy}","received_events_url":"https://api.github.com/users/benharsh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benharsh/chapel","description":"a Productive Parallel Programming Language","fork":true,"url":"https://api.github.com/repos/benharsh/chapel","forks_url":"https://api.github.com/repos/benharsh/chapel/forks","keys_url":"https://api.github.com/repos/benharsh/chapel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benharsh/chapel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benharsh/chapel/teams","hooks_url":"https://api.github.com/repos/benharsh/chapel/hooks","issue_events_url":"https://api.github.com/repos/benharsh/chapel/issues/events{/number}","events_url":"https://api.github.com/repos/benharsh/chapel/events","assignees_url":"https://api.github.com/repos/benharsh/chapel/assignees{/user}","branches_url":"https://api.github.com/repos/benharsh/chapel/branches{/branch}","tags_url":"https://api.github.com/repos/benharsh/chapel/tags","blobs_url":"https://api.github.com/repos/benharsh/chapel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benharsh/chapel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benharsh/chapel/git/refs{/sha}","trees_url":"https://api.github.com/repos/benharsh/chapel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benharsh/chapel/statuses/{sha}","languages_url":"https://api.github.com/repos/benharsh/chapel/languages","stargazers_url":"https://api.github.com/repos/benharsh/chapel/stargazers","contributors_url":"https://api.github.com/repos/benharsh/chapel/contributors","subscribers_url":"https://api.github.com/repos/benharsh/chapel/subscribers","subscription_url":"https://api.github.com/repos/benharsh/chapel/subscription","commits_url":"https://api.github.com/repos/benharsh/chapel/commits{/sha}","git_commits_url":"https://api.github.com/repos/benharsh/chapel/git/commits{/sha}","comments_url":"https://api.github.com/repos/benharsh/chapel/comments{/number}","issue_comment_url":"https://api.github.com/repos/benharsh/chapel/issues/comments{/number}","contents_url":"https://api.github.com/repos/benharsh/chapel/contents/{+path}","compare_url":"https://api.github.com/repos/benharsh/chapel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benharsh/chapel/merges","archive_url":"https://api.github.com/repos/benharsh/chapel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benharsh/chapel/downloads","issues_url":"https://api.github.com/repos/benharsh/chapel/issues{/number}","pulls_url":"https://api.github.com/repos/benharsh/chapel/pulls{/number}","milestones_url":"https://api.github.com/repos/benharsh/chapel/milestones{/number}","notifications_url":"https://api.github.com/repos/benharsh/chapel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benharsh/chapel/labels{/name}","releases_url":"https://api.github.com/repos/benharsh/chapel/releases{/id}","deployments_url":"https://api.github.com/repos/benharsh/chapel/deployments","created_at":"2014-07-16T16:46:13Z","updated_at":"2016-01-15T18:14:15Z","pushed_at":"2016-02-25T00:41:05Z","git_url":"git://github.com/benharsh/chapel.git","ssh_url":"git@github.com:benharsh/chapel.git","clone_url":"https://github.com/benharsh/chapel.git","svn_url":"https://github.com/benharsh/chapel","homepage":"http://chapel.cray.com/","size":356116,"stargazers_count":1,"watchers_count":1,"language":"Chapel","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"chapel-lang:master","ref":"master","sha":"f8337e84217a6a8edde264a5f4b4b46032ef9afa","user":{"login":"chapel-lang","id":7597261,"avatar_url":"https://avatars.githubusercontent.com/u/7597261?v=3","gravatar_id":"","url":"https://api.github.com/users/chapel-lang","html_url":"https://github.com/chapel-lang","followers_url":"https://api.github.com/users/chapel-lang/followers","following_url":"https://api.github.com/users/chapel-lang/following{/other_user}","gists_url":"https://api.github.com/users/chapel-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/chapel-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapel-lang/subscriptions","organizations_url":"https://api.github.com/users/chapel-lang/orgs","repos_url":"https://api.github.com/users/chapel-lang/repos","events_url":"https://api.github.com/users/chapel-lang/events{/privacy}","received_events_url":"https://api.github.com/users/chapel-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":21663285,"name":"chapel","full_name":"chapel-lang/chapel","owner":{"login":"chapel-lang","id":7597261,"avatar_url":"https://avatars.githubusercontent.com/u/7597261?v=3","gravatar_id":"","url":"https://api.github.com/users/chapel-lang","html_url":"https://github.com/chapel-lang","followers_url":"https://api.github.com/users/chapel-lang/followers","following_url":"https://api.github.com/users/chapel-lang/following{/other_user}","gists_url":"https://api.github.com/users/chapel-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/chapel-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapel-lang/subscriptions","organizations_url":"https://api.github.com/users/chapel-lang/orgs","repos_url":"https://api.github.com/users/chapel-lang/repos","events_url":"https://api.github.com/users/chapel-lang/events{/privacy}","received_events_url":"https://api.github.com/users/chapel-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chapel-lang/chapel","description":"a Productive Parallel Programming Language","fork":false,"url":"https://api.github.com/repos/chapel-lang/chapel","forks_url":"https://api.github.com/repos/chapel-lang/chapel/forks","keys_url":"https://api.github.com/repos/chapel-lang/chapel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chapel-lang/chapel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chapel-lang/chapel/teams","hooks_url":"https://api.github.com/repos/chapel-lang/chapel/hooks","issue_events_url":"https://api.github.com/repos/chapel-lang/chapel/issues/events{/number}","events_url":"https://api.github.com/repos/chapel-lang/chapel/events","assignees_url":"https://api.github.com/repos/chapel-lang/chapel/assignees{/user}","branches_url":"https://api.github.com/repos/chapel-lang/chapel/branches{/branch}","tags_url":"https://api.github.com/repos/chapel-lang/chapel/tags","blobs_url":"https://api.github.com/repos/chapel-lang/chapel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chapel-lang/chapel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chapel-lang/chapel/git/refs{/sha}","trees_url":"https://api.github.com/repos/chapel-lang/chapel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chapel-lang/chapel/statuses/{sha}","languages_url":"https://api.github.com/repos/chapel-lang/chapel/languages","stargazers_url":"https://api.github.com/repos/chapel-lang/chapel/stargazers","contributors_url":"https://api.github.com/repos/chapel-lang/chapel/contributors","subscribers_url":"https://api.github.com/repos/chapel-lang/chapel/subscribers","subscription_url":"https://api.github.com/repos/chapel-lang/chapel/subscription","commits_url":"https://api.github.com/repos/chapel-lang/chapel/commits{/sha}","git_commits_url":"https://api.github.com/repos/chapel-lang/chapel/git/commits{/sha}","comments_url":"https://api.github.com/repos/chapel-lang/chapel/comments{/number}","issue_comment_url":"https://api.github.com/repos/chapel-lang/chapel/issues/comments{/number}","contents_url":"https://api.github.com/repos/chapel-lang/chapel/contents/{+path}","compare_url":"https://api.github.com/repos/chapel-lang/chapel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chapel-lang/chapel/merges","archive_url":"https://api.github.com/repos/chapel-lang/chapel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chapel-lang/chapel/downloads","issues_url":"https://api.github.com/repos/chapel-lang/chapel/issues{/number}","pulls_url":"https://api.github.com/repos/chapel-lang/chapel/pulls{/number}","milestones_url":"https://api.github.com/repos/chapel-lang/chapel/milestones{/number}","notifications_url":"https://api.github.com/repos/chapel-lang/chapel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chapel-lang/chapel/labels{/name}","releases_url":"https://api.github.com/repos/chapel-lang/chapel/releases{/id}","deployments_url":"https://api.github.com/repos/chapel-lang/chapel/deployments","created_at":"2014-07-09T18:15:54Z","updated_at":"2016-02-25T09:35:46Z","pushed_at":"2016-02-25T17:04:50Z","git_url":"git://github.com/chapel-lang/chapel.git","ssh_url":"git@github.com:chapel-lang/chapel.git","clone_url":"https://github.com/chapel-lang/chapel.git","svn_url":"https://github.com/chapel-lang/chapel","homepage":"http://chapel.cray.com/","size":440911,"stargazers_count":202,"watchers_count":202,"language":"Chapel","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":7,"forks":69,"open_issues":7,"watchers":202,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chapel-lang/chapel/pulls/3362"},"html":{"href":"https://github.com/chapel-lang/chapel/pull/3362"},"issue":{"href":"https://api.github.com/repos/chapel-lang/chapel/issues/3362"},"comments":{"href":"https://api.github.com/repos/chapel-lang/chapel/issues/3362/comments"},"review_comments":{"href":"https://api.github.com/repos/chapel-lang/chapel/pulls/3362/comments"},"review_comment":{"href":"https://api.github.com/repos/chapel-lang/chapel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chapel-lang/chapel/pulls/3362/commits"},"statuses":{"href":"https://api.github.com/repos/chapel-lang/chapel/statuses/3bc514ec04e8d6108f812a6cf58ec47fdc770e97"}}}}