[LLVMbugs] [Bug 1122] getelementptr gets confused with nested type

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jan 26 00:38:05 PST 2007


http://llvm.org/bugs/show_bug.cgi?id=1122

rspencer at x10sys.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From rspencer at x10sys.com  2007-01-26 02:38 -------
The recent re-write of llvm-upgrade should have fixed this but. It no longer
gives the error and produces this output for the attached test case:

; ModuleID = '<stdin>'
        %RPyString = type { i32, %arraytype_Char_1 }
        %arraytype_Char_1 = type { i32, [0 x i8] }
        %structtype_rpy_string = type { i32, %arraytype_Char_1 }

implementation   ; Functions:

define i8* @RPyString_AsString(%RPyString* %structstring) {
        %source1ptr = getelementptr %RPyString* %structstring, i32 0, i32 1, i32
1              ; <[0 x i8]*> [#uses=1]
        %source1 = bitcast [0 x i8]* %source1ptr to i8*         ; <i8*> [#uses=1]
        ret i8* %source1
}




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list