<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -572,6 +572,12 @@ static const char *convert_ffi_type(VALUE type,
 VALUE
 rb_pointer_new(const char *type_str, void *val)
 {
+    // LLVM doesn't allow to get a pointer to Type::VoidTy, and for convenience
+    // reasons we map a pointer to void as a pointer to unsigned char.
+    if (*type_str == 'v') {
+	type_str = &quot;C&quot;;
+    }
+
     rb_vm_pointer_t *ptr = (rb_vm_pointer_t *)xmalloc(sizeof(rb_vm_pointer_t));
     GC_WB(&amp;ptr-&gt;type, rb_str_new2(type_str));
 </diff>
      <filename>bridgesupport.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6cca549adc721a4a119cf720871deacbaf4d7cdb</id>
    </parent>
  </parents>
  <author>
    <name>lsansonetti@apple.com</name>
    <email>lsansonetti@apple.com@23306eb0-4c56-4727-a40e-e92c0eb68959</email>
  </author>
  <url>http://github.com/masterkain/macruby/commit/d1e12b13032633afdbb8820af05d10f4ff5a2f02</url>
  <id>d1e12b13032633afdbb8820af05d10f4ff5a2f02</id>
  <committed-date>2009-10-28T21:02:33-07:00</committed-date>
  <authored-date>2009-10-28T21:02:33-07:00</authored-date>
  <message>fixed Pointer to work with ^v (void *) type

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@2916 23306eb0-4c56-4727-a40e-e92c0eb68959</message>
  <tree>354ad8479fcca041acd28a62893806adb22bbabc</tree>
  <committer>
    <name>lsansonetti@apple.com</name>
    <email>lsansonetti@apple.com@23306eb0-4c56-4727-a40e-e92c0eb68959</email>
  </committer>
</commit>
