1*9880d681SAndroid Build Coastguard Worker; RUN: llc -O1 < %s 2*9880d681SAndroid Build Coastguard Worker; REQUIRES: default_triple 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; ModuleID = 'pr6157.bc' 5*9880d681SAndroid Build Coastguard Worker; formerly crashed in SelectionDAGBuilder 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker%tart.reflect.ComplexType = type { double, double } 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Worker@.type.SwitchStmtTest = constant %tart.reflect.ComplexType { double 3.0, double 2.0 } 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Workerdefine i32 @"main(tart.core.String[])->int32"(i32 %args) { 12*9880d681SAndroid Build Coastguard Workerentry: 13*9880d681SAndroid Build Coastguard Worker tail call void @llvm.dbg.value(metadata %tart.reflect.ComplexType* @.type.SwitchStmtTest, i64 0, metadata !8, metadata !DIExpression()), !dbg !DILocation(scope: !9) 14*9880d681SAndroid Build Coastguard Worker tail call void @"tart.reflect.ComplexType.create->tart.core.Object"(%tart.reflect.ComplexType* @.type.SwitchStmtTest) ; <%tart.core.Object*> [#uses=2] 15*9880d681SAndroid Build Coastguard Worker ret i32 3 16*9880d681SAndroid Build Coastguard Worker} 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone 19*9880d681SAndroid Build Coastguard Workerdeclare void @"tart.reflect.ComplexType.create->tart.core.Object"(%tart.reflect.ComplexType*) nounwind readnone 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0} 22*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !15, enums: !16, retainedTypes: !16) 23*9880d681SAndroid Build Coastguard Worker!1 = !DIDerivedType(tag: DW_TAG_const_type, size: 192, align: 64, file: !15, scope: !0, baseType: !2) 24*9880d681SAndroid Build Coastguard Worker!2 = !DICompositeType(tag: DW_TAG_structure_type, name: "C", line: 1, size: 192, align: 64, file: !15, scope: !0, elements: !3) 25*9880d681SAndroid Build Coastguard Worker!3 = !{!4, !6, !7} 26*9880d681SAndroid Build Coastguard Worker!4 = !DIDerivedType(tag: DW_TAG_member, name: "x", line: 1, size: 64, align: 64, file: !15, scope: !2, baseType: !5) 27*9880d681SAndroid Build Coastguard Worker!5 = !DIBasicType(tag: DW_TAG_base_type, name: "double", size: 64, align: 64, encoding: DW_ATE_float) 28*9880d681SAndroid Build Coastguard Worker!6 = !DIDerivedType(tag: DW_TAG_member, name: "y", line: 1, size: 64, align: 64, offset: 64, file: !15, scope: !2, baseType: !5) 29*9880d681SAndroid Build Coastguard Worker!7 = !DIDerivedType(tag: DW_TAG_member, name: "z", line: 1, size: 64, align: 64, offset: 128, file: !15, scope: !2, baseType: !5) 30*9880d681SAndroid Build Coastguard Worker!8 = !DILocalVariable(name: "t", line: 5, scope: !9, file: !0, type: !2) 31*9880d681SAndroid Build Coastguard Worker!9 = distinct !DILexicalBlock(line: 0, column: 0, file: null, scope: !10) 32*9880d681SAndroid Build Coastguard Worker!10 = distinct !DISubprogram(name: "foo", linkageName: "foo", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !0, scope: !0, type: !11) 33*9880d681SAndroid Build Coastguard Worker!11 = !DISubroutineType(types: !12) 34*9880d681SAndroid Build Coastguard Worker!12 = !{!13} 35*9880d681SAndroid Build Coastguard Worker!13 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 36*9880d681SAndroid Build Coastguard Worker!14 = !{%tart.reflect.ComplexType* @.type.SwitchStmtTest} 37*9880d681SAndroid Build Coastguard Worker!15 = !DIFile(filename: "sm.c", directory: "") 38*9880d681SAndroid Build Coastguard Worker!16 = !{i32 0} 39