{"action":"created","comment":{"url":"https://api.github.com/repos/numba/llvmlite/pulls/comments/58033611","id":58033611,"diff_hunk":"@@ -224,6 +224,12 @@ def test_named_metadata_2(self):\n         self.assertInText(\"!bar = !{ !0, !0 }\", str(mod))\n         self.assert_valid_ir(mod)\n \n+    def test_metadata_null(self):\n+        mod = self.module()\n+        md = mod.add_metadata([ir.Constant(ir.PointerType(ir.IntType(32)), None)])","path":"llvmlite/tests/test_ir.py","position":6,"original_position":6,"commit_id":"c078b3da21a9a71a86586562597a50445860d800","original_commit_id":"c078b3da21a9a71a86586562597a50445860d800","user":{"login":"pitrou","id":1721820,"avatar_url":"https://avatars.githubusercontent.com/u/1721820?v=3","gravatar_id":"","url":"https://api.github.com/users/pitrou","html_url":"https://github.com/pitrou","followers_url":"https://api.github.com/users/pitrou/followers","following_url":"https://api.github.com/users/pitrou/following{/other_user}","gists_url":"https://api.github.com/users/pitrou/gists{/gist_id}","starred_url":"https://api.github.com/users/pitrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitrou/subscriptions","organizations_url":"https://api.github.com/users/pitrou/orgs","repos_url":"https://api.github.com/users/pitrou/repos","events_url":"https://api.github.com/users/pitrou/events{/privacy}","received_events_url":"https://api.github.com/users/pitrou/received_events","type":"User","site_admin":false},"body":"Note this can be more concisely written as `ir.IntType(32).as_pointer()(None)`.","created_at":"2016-03-31T10:40:18Z","updated_at":"2016-03-31T10:40:18Z","html_url":"https://github.com/numba/llvmlite/pull/155#discussion_r58033611","pull_request_url":"https://api.github.com/repos/numba/llvmlite/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/numba/llvmlite/pulls/comments/58033611"},"html":{"href":"https://github.com/numba/llvmlite/pull/155#discussion_r58033611"},"pull_request":{"href":"https://api.github.com/repos/numba/llvmlite/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/numba/llvmlite/pulls/155","id":64744904,"html_url":"https://github.com/numba/llvmlite/pull/155","diff_url":"https://github.com/numba/llvmlite/pull/155.diff","patch_url":"https://github.com/numba/llvmlite/pull/155.patch","issue_url":"https://api.github.com/repos/numba/llvmlite/issues/155","number":155,"state":"open","locked":false,"title":"Properly emit IR for metadata null","user":{"login":"whitequark","id":54771,"avatar_url":"https://avatars.githubusercontent.com/u/54771?v=3","gravatar_id":"","url":"https://api.github.com/users/whitequark","html_url":"https://github.com/whitequark","followers_url":"https://api.github.com/users/whitequark/followers","following_url":"https://api.github.com/users/whitequark/following{/other_user}","gists_url":"https://api.github.com/users/whitequark/gists{/gist_id}","starred_url":"https://api.github.com/users/whitequark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitequark/subscriptions","organizations_url":"https://api.github.com/users/whitequark/orgs","repos_url":"https://api.github.com/users/whitequark/repos","events_url":"https://api.github.com/users/whitequark/events{/privacy}","received_events_url":"https://api.github.com/users/whitequark/received_events","type":"User","site_admin":false},"body":"Before, it was emitted as `!0 = { zeroinitializer }`.","created_at":"2016-03-31T07:17:00Z","updated_at":"2016-03-31T10:40:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1fc59c3b0086283b778f62f60e4142e5a653a11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/numba/llvmlite/pulls/155/commits","review_comments_url":"https://api.github.com/repos/numba/llvmlite/pulls/155/comments","review_comment_url":"https://api.github.com/repos/numba/llvmlite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numba/llvmlite/issues/155/comments","statuses_url":"https://api.github.com/repos/numba/llvmlite/statuses/c078b3da21a9a71a86586562597a50445860d800","head":{"label":"m-labs:metadata-null","ref":"metadata-null","sha":"c078b3da21a9a71a86586562597a50445860d800","user":{"login":"m-labs","id":116047,"avatar_url":"https://avatars.githubusercontent.com/u/116047?v=3","gravatar_id":"","url":"https://api.github.com/users/m-labs","html_url":"https://github.com/m-labs","followers_url":"https://api.github.com/users/m-labs/followers","following_url":"https://api.github.com/users/m-labs/following{/other_user}","gists_url":"https://api.github.com/users/m-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/m-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-labs/subscriptions","organizations_url":"https://api.github.com/users/m-labs/orgs","repos_url":"https://api.github.com/users/m-labs/repos","events_url":"https://api.github.com/users/m-labs/events{/privacy}","received_events_url":"https://api.github.com/users/m-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":39813276,"name":"llvmlite","full_name":"m-labs/llvmlite","owner":{"login":"m-labs","id":116047,"avatar_url":"https://avatars.githubusercontent.com/u/116047?v=3","gravatar_id":"","url":"https://api.github.com/users/m-labs","html_url":"https://github.com/m-labs","followers_url":"https://api.github.com/users/m-labs/followers","following_url":"https://api.github.com/users/m-labs/following{/other_user}","gists_url":"https://api.github.com/users/m-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/m-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-labs/subscriptions","organizations_url":"https://api.github.com/users/m-labs/orgs","repos_url":"https://api.github.com/users/m-labs/repos","events_url":"https://api.github.com/users/m-labs/events{/privacy}","received_events_url":"https://api.github.com/users/m-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/m-labs/llvmlite","description":"A lightweight LLVM python binding for writing JIT compilers","fork":true,"url":"https://api.github.com/repos/m-labs/llvmlite","forks_url":"https://api.github.com/repos/m-labs/llvmlite/forks","keys_url":"https://api.github.com/repos/m-labs/llvmlite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/m-labs/llvmlite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/m-labs/llvmlite/teams","hooks_url":"https://api.github.com/repos/m-labs/llvmlite/hooks","issue_events_url":"https://api.github.com/repos/m-labs/llvmlite/issues/events{/number}","events_url":"https://api.github.com/repos/m-labs/llvmlite/events","assignees_url":"https://api.github.com/repos/m-labs/llvmlite/assignees{/user}","branches_url":"https://api.github.com/repos/m-labs/llvmlite/branches{/branch}","tags_url":"https://api.github.com/repos/m-labs/llvmlite/tags","blobs_url":"https://api.github.com/repos/m-labs/llvmlite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/m-labs/llvmlite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/m-labs/llvmlite/git/refs{/sha}","trees_url":"https://api.github.com/repos/m-labs/llvmlite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/m-labs/llvmlite/statuses/{sha}","languages_url":"https://api.github.com/repos/m-labs/llvmlite/languages","stargazers_url":"https://api.github.com/repos/m-labs/llvmlite/stargazers","contributors_url":"https://api.github.com/repos/m-labs/llvmlite/contributors","subscribers_url":"https://api.github.com/repos/m-labs/llvmlite/subscribers","subscription_url":"https://api.github.com/repos/m-labs/llvmlite/subscription","commits_url":"https://api.github.com/repos/m-labs/llvmlite/commits{/sha}","git_commits_url":"https://api.github.com/repos/m-labs/llvmlite/git/commits{/sha}","comments_url":"https://api.github.com/repos/m-labs/llvmlite/comments{/number}","issue_comment_url":"https://api.github.com/repos/m-labs/llvmlite/issues/comments{/number}","contents_url":"https://api.github.com/repos/m-labs/llvmlite/contents/{+path}","compare_url":"https://api.github.com/repos/m-labs/llvmlite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/m-labs/llvmlite/merges","archive_url":"https://api.github.com/repos/m-labs/llvmlite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/m-labs/llvmlite/downloads","issues_url":"https://api.github.com/repos/m-labs/llvmlite/issues{/number}","pulls_url":"https://api.github.com/repos/m-labs/llvmlite/pulls{/number}","milestones_url":"https://api.github.com/repos/m-labs/llvmlite/milestones{/number}","notifications_url":"https://api.github.com/repos/m-labs/llvmlite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/m-labs/llvmlite/labels{/name}","releases_url":"https://api.github.com/repos/m-labs/llvmlite/releases{/id}","deployments_url":"https://api.github.com/repos/m-labs/llvmlite/deployments","created_at":"2015-07-28T04:36:22Z","updated_at":"2016-03-24T13:34:44Z","pushed_at":"2016-03-31T07:46:35Z","git_url":"git://github.com/m-labs/llvmlite.git","ssh_url":"git@github.com:m-labs/llvmlite.git","clone_url":"https://github.com/m-labs/llvmlite.git","svn_url":"https://github.com/m-labs/llvmlite","homepage":"http://llvmlite.pydata.org/","size":824,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"numba:master","ref":"master","sha":"4c9a9dba369a4d6165594f1e14d59d553ac0c9f8","user":{"login":"numba","id":1628082,"avatar_url":"https://avatars.githubusercontent.com/u/1628082?v=3","gravatar_id":"","url":"https://api.github.com/users/numba","html_url":"https://github.com/numba","followers_url":"https://api.github.com/users/numba/followers","following_url":"https://api.github.com/users/numba/following{/other_user}","gists_url":"https://api.github.com/users/numba/gists{/gist_id}","starred_url":"https://api.github.com/users/numba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numba/subscriptions","organizations_url":"https://api.github.com/users/numba/orgs","repos_url":"https://api.github.com/users/numba/repos","events_url":"https://api.github.com/users/numba/events{/privacy}","received_events_url":"https://api.github.com/users/numba/received_events","type":"Organization","site_admin":false},"repo":{"id":22725061,"name":"llvmlite","full_name":"numba/llvmlite","owner":{"login":"numba","id":1628082,"avatar_url":"https://avatars.githubusercontent.com/u/1628082?v=3","gravatar_id":"","url":"https://api.github.com/users/numba","html_url":"https://github.com/numba","followers_url":"https://api.github.com/users/numba/followers","following_url":"https://api.github.com/users/numba/following{/other_user}","gists_url":"https://api.github.com/users/numba/gists{/gist_id}","starred_url":"https://api.github.com/users/numba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numba/subscriptions","organizations_url":"https://api.github.com/users/numba/orgs","repos_url":"https://api.github.com/users/numba/repos","events_url":"https://api.github.com/users/numba/events{/privacy}","received_events_url":"https://api.github.com/users/numba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numba/llvmlite","description":"A lightweight LLVM python binding for writing JIT compilers","fork":false,"url":"https://api.github.com/repos/numba/llvmlite","forks_url":"https://api.github.com/repos/numba/llvmlite/forks","keys_url":"https://api.github.com/repos/numba/llvmlite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numba/llvmlite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numba/llvmlite/teams","hooks_url":"https://api.github.com/repos/numba/llvmlite/hooks","issue_events_url":"https://api.github.com/repos/numba/llvmlite/issues/events{/number}","events_url":"https://api.github.com/repos/numba/llvmlite/events","assignees_url":"https://api.github.com/repos/numba/llvmlite/assignees{/user}","branches_url":"https://api.github.com/repos/numba/llvmlite/branches{/branch}","tags_url":"https://api.github.com/repos/numba/llvmlite/tags","blobs_url":"https://api.github.com/repos/numba/llvmlite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numba/llvmlite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numba/llvmlite/git/refs{/sha}","trees_url":"https://api.github.com/repos/numba/llvmlite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numba/llvmlite/statuses/{sha}","languages_url":"https://api.github.com/repos/numba/llvmlite/languages","stargazers_url":"https://api.github.com/repos/numba/llvmlite/stargazers","contributors_url":"https://api.github.com/repos/numba/llvmlite/contributors","subscribers_url":"https://api.github.com/repos/numba/llvmlite/subscribers","subscription_url":"https://api.github.com/repos/numba/llvmlite/subscription","commits_url":"https://api.github.com/repos/numba/llvmlite/commits{/sha}","git_commits_url":"https://api.github.com/repos/numba/llvmlite/git/commits{/sha}","comments_url":"https://api.github.com/repos/numba/llvmlite/comments{/number}","issue_comment_url":"https://api.github.com/repos/numba/llvmlite/issues/comments{/number}","contents_url":"https://api.github.com/repos/numba/llvmlite/contents/{+path}","compare_url":"https://api.github.com/repos/numba/llvmlite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numba/llvmlite/merges","archive_url":"https://api.github.com/repos/numba/llvmlite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numba/llvmlite/downloads","issues_url":"https://api.github.com/repos/numba/llvmlite/issues{/number}","pulls_url":"https://api.github.com/repos/numba/llvmlite/pulls{/number}","milestones_url":"https://api.github.com/repos/numba/llvmlite/milestones{/number}","notifications_url":"https://api.github.com/repos/numba/llvmlite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numba/llvmlite/labels{/name}","releases_url":"https://api.github.com/repos/numba/llvmlite/releases{/id}","deployments_url":"https://api.github.com/repos/numba/llvmlite/deployments","created_at":"2014-08-07T14:51:28Z","updated_at":"2016-03-26T18:20:36Z","pushed_at":"2016-03-31T07:46:50Z","git_url":"git://github.com/numba/llvmlite.git","ssh_url":"git@github.com:numba/llvmlite.git","clone_url":"https://github.com/numba/llvmlite.git","svn_url":"https://github.com/numba/llvmlite","homepage":"http://llvmlite.pydata.org/","size":1104,"stargazers_count":210,"watchers_count":210,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":23,"forks":52,"open_issues":23,"watchers":210,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numba/llvmlite/pulls/155"},"html":{"href":"https://github.com/numba/llvmlite/pull/155"},"issue":{"href":"https://api.github.com/repos/numba/llvmlite/issues/155"},"comments":{"href":"https://api.github.com/repos/numba/llvmlite/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/numba/llvmlite/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/numba/llvmlite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numba/llvmlite/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/numba/llvmlite/statuses/c078b3da21a9a71a86586562597a50445860d800"}}}}