[clang] Add tracking source deduction guide for the explicitly-written
[llvm-project.git] / llvm / test / DebugInfo / dpvalue-print-nocrash.ll
blobd8cb542285c89b16eb4b5fb10686482929476ad0
1 ;; Tests that we can debug-print DbgVariableRecords that have no markers attached.
2 ; RUN: opt -passes="instcombine" -debug %s -o /dev/null 2>&1 | FileCheck %s
3 ; REQUIRES: asserts
5 ; CHECK: CLONE:   #dbg_value(
7 define ptr @func_10(i32 %p_11) {
8 entry:
9   %conv108 = zext i32 %p_11 to i64
10   tail call void @llvm.dbg.value(metadata i64 %conv108, metadata !4, metadata !DIExpression()), !dbg !12
11   br label %func_29.exit
13 func_29.exit:                                     ; preds = %entry
14   store i64 %conv108, ptr null, align 1
15   ret ptr null
18 declare void @llvm.dbg.value(metadata, metadata, metadata)
20 !llvm.dbg.cu = !{!0}
21 !llvm.module.flags = !{!3}
23 !0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, retainedTypes: !2, globals: !2, splitDebugInlining: false, nameTableKind: None)
24 !1 = !DIFile(filename: "csmith5961503756960.c", directory: "/llvm")
25 !2 = !{}
26 !3 = !{i32 2, !"Debug Info Version", i32 3}
27 !4 = !DILocalVariable(name: "p_31", arg: 2, scope: !5, file: !1, line: 148, type: !7)
28 !5 = distinct !DISubprogram(name: "func_29", scope: !1, file: !1, line: 148, type: !6, scopeLine: 149, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2)
29 !6 = !DISubroutineType(types: !2)
30 !7 = !DIDerivedType(tag: DW_TAG_typedef, name: "uint64_t", file: !8, line: 60, baseType: !9)
31 !8 = !DIFile(filename: "/foo/_stdint.h", directory: "")
32 !9 = !DIDerivedType(tag: DW_TAG_typedef, name: "__uint64_t", file: !10, line: 108, baseType: !11)
33 !10 = !DIFile(filename: "/foo/_default_types.h", directory: "")
34 !11 = !DIBasicType(name: "unsigned long long", size: 64, encoding: DW_ATE_unsigned)
35 !12 = !DILocation(line: 0, scope: !5)