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/Assembler/invalid-mdlocalvariable-null-scope.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/Assembler/invalid-mdlocalvariable-null-scope.ll')
-rw-r--r-- | llvm/test/Assembler/invalid-mdlocalvariable-null-scope.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-mdlocalvariable-null-scope.ll b/llvm/test/Assembler/invalid-mdlocalvariable-null-scope.ll new file mode 100644 index 00000000000..53ee94de79b --- /dev/null +++ b/llvm/test/Assembler/invalid-mdlocalvariable-null-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: <stdin>:[[@LINE+1]]:30: error: 'scope' cannot be null +!0 = !MDLocalVariable(scope: null) |