{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/16388","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/16388/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/16388/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/16388/events","html_url":"https://github.com/JuliaLang/julia/pull/16388","id":155076198,"number":16388,"title":"emit a trap instruction before an inferred unreachable function return","user":{"login":"vtjnash","id":330950,"avatar_url":"https://avatars.githubusercontent.com/u/330950?v=3","gravatar_id":"","url":"https://api.github.com/users/vtjnash","html_url":"https://github.com/vtjnash","followers_url":"https://api.github.com/users/vtjnash/followers","following_url":"https://api.github.com/users/vtjnash/following{/other_user}","gists_url":"https://api.github.com/users/vtjnash/gists{/gist_id}","starred_url":"https://api.github.com/users/vtjnash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtjnash/subscriptions","organizations_url":"https://api.github.com/users/vtjnash/orgs","repos_url":"https://api.github.com/users/vtjnash/repos","events_url":"https://api.github.com/users/vtjnash/events{/privacy}","received_events_url":"https://api.github.com/users/vtjnash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-05-16T17:16:44Z","updated_at":"2016-05-16T20:45:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/16388","html_url":"https://github.com/JuliaLang/julia/pull/16388","diff_url":"https://github.com/JuliaLang/julia/pull/16388.diff","patch_url":"https://github.com/JuliaLang/julia/pull/16388.patch"},"body":"@Keno as you requested\r\n```julia\r\njulia> f() = f()\r\nf (generic function with 1 method)\r\n\r\njulia> g() = f()\r\ng (generic function with 1 method)\r\n\r\njulia> @code_llvm g()\r\n\r\n; Function Attrs: noreturn\r\ndefine void @julia_g_49908() #0 {\r\ntop:\r\n  call void @julia_f_49909()\r\n  call void @llvm.trap()\r\n  unreachable\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/219542401","html_url":"https://github.com/JuliaLang/julia/pull/16388#issuecomment-219542401","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/16388","id":219542401,"user":{"login":"vtjnash","id":330950,"avatar_url":"https://avatars.githubusercontent.com/u/330950?v=3","gravatar_id":"","url":"https://api.github.com/users/vtjnash","html_url":"https://github.com/vtjnash","followers_url":"https://api.github.com/users/vtjnash/followers","following_url":"https://api.github.com/users/vtjnash/following{/other_user}","gists_url":"https://api.github.com/users/vtjnash/gists{/gist_id}","starred_url":"https://api.github.com/users/vtjnash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtjnash/subscriptions","organizations_url":"https://api.github.com/users/vtjnash/orgs","repos_url":"https://api.github.com/users/vtjnash/repos","events_url":"https://api.github.com/users/vtjnash/events{/privacy}","received_events_url":"https://api.github.com/users/vtjnash/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T20:45:48Z","updated_at":"2016-05-16T20:45:48Z","body":"The point of emitting a trap instruction is that the code path is (supposed to be) unreachable"}}