1 ; RUN: llvm-upgrade < %s | llvm-as | opt -licm
3 "java/lang/Object" = type { %struct.llvm_java_object_base }
4 "java/lang/StringBuffer" = type { "java/lang/Object", int, { "java/lang/Object", uint, [0 x ushort] }*, bool }
5 %struct.llvm_java_object_base = type opaque
7 implementation ; Functions:
9 void "java/lang/StringBuffer/setLength(I)V"(%struct.llvm_java_object_base*) {
11 br bool false, label %bc40, label %bc65
13 bc65: ; preds = %bc0, %bc40
16 bc40: ; preds = %bc0, %bc40
17 %tmp75 = cast %struct.llvm_java_object_base* %0 to "java/lang/StringBuffer"* ; <"java/lang/StringBuffer"*> [#uses=1]
18 %tmp76 = getelementptr "java/lang/StringBuffer"* %tmp75, int 0, uint 1 ; <int*> [#uses=1]
19 store int 0, int* %tmp76
20 %tmp381 = cast %struct.llvm_java_object_base* %0 to "java/lang/StringBuffer"* ; <"java/lang/StringBuffer"*> [#uses=1]
21 %tmp392 = getelementptr "java/lang/StringBuffer"* %tmp381, int 0, uint 1 ; <int*> [#uses=1]
22 %tmp403 = load int* %tmp392 ; <int> [#uses=0]
23 br bool false, label %bc40, label %bc65