DebugInfo: Add missing !dbg attachments to intrinsics
[oota-llvm.git] / test / Verifier / llvm.dbg.declare-address.ll
index b7735b02a1329ef6b742a70e03bfeaabb4a28d7b..0c23d6ea39797caf538ad57ce00171b436ae45a9 100644 (file)
@@ -6,7 +6,7 @@
 define void @foo(i32 %a) {
 entry:
   %s = alloca i32
-  call void @llvm.dbg.declare(metadata !"", metadata !MDLocalVariable(tag: DW_TAG_arg_variable, scope: !1), metadata !MDExpression())
+  call void @llvm.dbg.declare(metadata !"", metadata !MDLocalVariable(tag: DW_TAG_arg_variable, scope: !1), metadata !MDExpression()), !dbg !MDLocation(scope: !1)
   ret void
 }