diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-27 17:56:39 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-27 17:56:39 +0000 |
| commit | e2c61d9eece93cd6bc28b0af465d77097775cca4 (patch) | |
| tree | 7bfa151a2dffbc3dd39293cb68c91471a2a12d50 /llvm/test/CodeGen/Generic/dbg_value.ll | |
| parent | 463a0afe15b15d35d0c7dc9750ee3a5a480bcf8c (diff) | |
| download | bcm5719-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.ll | 2 |
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()) |

