llvm.org GIT mirror llvm / release_37 test / CodeGen / Generic / dbg_value.ll
release_37

Tree @release_37 (Download .tar.gz)

dbg_value.ll @release_37

4507f08
 
 
 
 
 
e56023a
4507f08
 
 
02474a3
4507f08
cbafae6
e56023a
; RUN: llc < %s
; rdar://7759395

%0 = type { i32, i32 }

define void @t(%0*, i32, i32, i32, i32) nounwind {
  tail call void @llvm.dbg.value(metadata %0* %0, i64 0, metadata !0, metadata !DIExpression()), !dbg !DILocation(scope: !DISubprogram())
  unreachable
}

declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone

; !0 should conform to the format of DIVariable.
!0 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "a", arg: 0, scope: !DISubprogram())