Displaying 1 result from an estimated 1 matches for "emit_class_body_typ".
Did you mean:
  emit_class_body_type
  
2013 Jan 09
2
[LLVMdev] Global variable initializer type does not match global variable type
...e demonstrates what I 
deem the incorrect
behavior:
    # llvm_ty is an LLVM struct type with 2 elements.
    a, b = llvm_ty.element_types
    # Here, I decompose the type and verify that the types of elements
    # match my expectations:
    p a == @types[Monotype.of(VI::Class)] # true
    p b == emit_class_body_type(klass)    # true
    # I attempt to reconstruct the type using the elements
    # and check if it's still the same.
    p llvm_ty == LLVM::Type.struct([
         @types[Monotype.of(VI::Class)],
         emit_class_body_type(klass)
      ], false)                           # false. Why?
Ruby-...