summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/dbg_value.ll
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-27 17:56:39 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-27 17:56:39 +0000
commite2c61d9eece93cd6bc28b0af465d77097775cca4 (patch)
tree7bfa151a2dffbc3dd39293cb68c91471a2a12d50 /llvm/test/CodeGen/Generic/dbg_value.ll
parent463a0afe15b15d35d0c7dc9750ee3a5a480bcf8c (diff)
downloadbcm5719-llvm-e2c61d9eece93cd6bc28b0af465d77097775cca4.tar.gz
bcm5719-llvm-e2c61d9eece93cd6bc28b0af465d77097775cca4.zip
LLParser: Require non-null scope for MDLocation and MDLocalVariable
Change `LLParser` to require a non-null `scope:` field for both `MDLocation` and `MDLocalVariable`. There's no need to wait for the verifier for this check. This also allows their `::getImpl()` methods to assert that the incoming scope is non-null. llvm-svn: 233394
Diffstat (limited to 'llvm/test/CodeGen/Generic/dbg_value.ll')
-rw-r--r--llvm/test/CodeGen/Generic/dbg_value.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Generic/dbg_value.ll b/llvm/test/CodeGen/Generic/dbg_value.ll
index c5200d7837c..f2f3a3f2c79 100644
--- a/llvm/test/CodeGen/Generic/dbg_value.ll
+++ b/llvm/test/CodeGen/Generic/dbg_value.ll
@@ -11,4 +11,4 @@ define void @t(%0*, i32, i32, i32, i32) nounwind {
declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
; !0 should conform to the format of DIVariable.
-!0 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "a", arg: 0, scope: null)
+!0 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "a", arg: 0, scope: !MDSubprogram())
OpenPOWER on IntegriCloud