{"action":"opened","issue":{"url":"https://api.github.com/repos/jauhien/iron-kaleidoscope/issues/3","repository_url":"https://api.github.com/repos/jauhien/iron-kaleidoscope","labels_url":"https://api.github.com/repos/jauhien/iron-kaleidoscope/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jauhien/iron-kaleidoscope/issues/3/comments","events_url":"https://api.github.com/repos/jauhien/iron-kaleidoscope/issues/3/events","html_url":"https://github.com/jauhien/iron-kaleidoscope/issues/3","id":133132533,"number":3,"title":"LLVM ERROR when using defined function more than once.","user":{"login":"ConnorGBrewster","id":9086315,"avatar_url":"https://avatars.githubusercontent.com/u/9086315?v=3","gravatar_id":"","url":"https://api.github.com/users/ConnorGBrewster","html_url":"https://github.com/ConnorGBrewster","followers_url":"https://api.github.com/users/ConnorGBrewster/followers","following_url":"https://api.github.com/users/ConnorGBrewster/following{/other_user}","gists_url":"https://api.github.com/users/ConnorGBrewster/gists{/gist_id}","starred_url":"https://api.github.com/users/ConnorGBrewster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConnorGBrewster/subscriptions","organizations_url":"https://api.github.com/users/ConnorGBrewster/orgs","repos_url":"https://api.github.com/users/ConnorGBrewster/repos","events_url":"https://api.github.com/users/ConnorGBrewster/events{/privacy}","received_events_url":"https://api.github.com/users/ConnorGBrewster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-12T01:04:53Z","updated_at":"2016-02-12T01:04:53Z","closed_at":null,"body":"When I define a function and try to use it multiple times, LLVM has an error and the program crashes.\r\n\r\nExample:\r\n```\r\n> def double(x) x * 2\r\n\r\ndefine double @double(double %x) {\r\nentry:\r\n  %multmp = fmul double %x, 2.000000e+00\r\n  ret double %multmp\r\n}\r\n\r\n> double(4)\r\n=> 8\r\n> double(5)\r\nLLVM ERROR: Program used external function '_double' which could not be resolved!\r\n```\r\n\r\nThis appears to be an issue in my own codebase and the code found in the chapters in this repository, I am using code from chapter 5."}}