{"action":"created","issue":{"url":"https://api.github.com/repos/duncantl/Rllvm/issues/9","labels_url":"https://api.github.com/repos/duncantl/Rllvm/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/duncantl/Rllvm/issues/9/comments","events_url":"https://api.github.com/repos/duncantl/Rllvm/issues/9/events","html_url":"https://github.com/duncantl/Rllvm/issues/9","id":108960133,"number":9,"title":"Segfault for GEP on opaque struct","user":{"login":"nick-ulle","id":3589364,"avatar_url":"https://avatars.githubusercontent.com/u/3589364?v=3","gravatar_id":"","url":"https://api.github.com/users/nick-ulle","html_url":"https://github.com/nick-ulle","followers_url":"https://api.github.com/users/nick-ulle/followers","following_url":"https://api.github.com/users/nick-ulle/following{/other_user}","gists_url":"https://api.github.com/users/nick-ulle/gists{/gist_id}","starred_url":"https://api.github.com/users/nick-ulle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nick-ulle/subscriptions","organizations_url":"https://api.github.com/users/nick-ulle/orgs","repos_url":"https://api.github.com/users/nick-ulle/repos","events_url":"https://api.github.com/users/nick-ulle/events{/privacy}","received_events_url":"https://api.github.com/users/nick-ulle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-09-29T21:08:08Z","updated_at":"2015-09-30T02:59:31Z","closed_at":null,"body":"The following example segfaults with the lastest version of Rllvm and LLVM 3.6.2:\r\n```{r}\r\nlibrary(Rllvm)\r\n\r\nmodule = Module()\r\nfun = Function(\"fun\", VoidType, list(), module = module)\r\nentry = Block(fun, \"entry\")\r\nbuilder = IRBuilder(entry)\r\n\r\ndata_struct = structType(list(), \"data\", withNames = FALSE)\r\n\r\nx = createAlloc(builder, arrayType(data_struct, 3L), id = \"x\")\r\n\r\nx_id = createGEP(builder, x, createIntegerConstant(0L))\r\n```"},"comment":{"url":"https://api.github.com/repos/duncantl/Rllvm/issues/comments/144267728","html_url":"https://github.com/duncantl/Rllvm/issues/9#issuecomment-144267728","issue_url":"https://api.github.com/repos/duncantl/Rllvm/issues/9","id":144267728,"user":{"login":"duncantl","id":622617,"avatar_url":"https://avatars.githubusercontent.com/u/622617?v=3","gravatar_id":"","url":"https://api.github.com/users/duncantl","html_url":"https://github.com/duncantl","followers_url":"https://api.github.com/users/duncantl/followers","following_url":"https://api.github.com/users/duncantl/following{/other_user}","gists_url":"https://api.github.com/users/duncantl/gists{/gist_id}","starred_url":"https://api.github.com/users/duncantl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncantl/subscriptions","organizations_url":"https://api.github.com/users/duncantl/orgs","repos_url":"https://api.github.com/users/duncantl/repos","events_url":"https://api.github.com/users/duncantl/events{/privacy}","received_events_url":"https://api.github.com/users/duncantl/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T02:59:31Z","updated_at":"2015-09-30T02:59:31Z","body":"Allocating an array of pointers is easy as the size of a pointer is known. Allocating an array of structs whose size is not known doesn't work."}}