]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/Transforms/ArgumentPromotion/dbg.ll
ArgumentPromotion: Propagate debug locations on calls for which arguments are promoted.
[opencl/llvm.git] / test / Transforms / ArgumentPromotion / dbg.ll
1 ; RUN: opt < %s -argpromotion -S | FileCheck %s
2 ; CHECK: call void @test(), !dbg !1
3 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
4 define internal void @test(i32* %X) {
5   ret void
6 }
8 define void @caller() {
9   call void @test(i32* null), !dbg !1
10   ret void
11 }
13 !llvm.module.flags = !{!3}
15 !1 = metadata !{i32 8, i32 0, metadata !2, null}
16 !2 = metadata !{}
17 !3 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}