Verifier: Add operand checks for MDLexicalBlock
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 16:37:48 +0000 (16:37 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 16:37:48 +0000 (16:37 +0000)
commitd3ec0ca17ec7891af2c238f1c19a6d1cf6b250fd
treea7746c2dc7c97132f699fb42469ef687eefcfd8d
parent0c251f74ef730bf462ad4f09aac50b2721b81a5e
Verifier: Add operand checks for MDLexicalBlock

Add operand checks for `MDLexicalBlock` and `MDLexicalBlockFile`.  Like
`MDLocalVariable` and `MDLocation`, these nodes always require a scope.

There was no test bitrot to fix here (just updated the serialization
tests in test/Assembler/mdlexicalblock.ll).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233561 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfoMetadata.h
lib/AsmParser/LLParser.cpp
lib/IR/AsmWriter.cpp
lib/IR/DebugInfoMetadata.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Verifier.cpp
test/Assembler/invalid-mdlexicalblock-null-scope.ll [new file with mode: 0644]
test/Assembler/invalid-mdlexicalblockfile-null-scope.ll [new file with mode: 0644]
test/Assembler/mdlexicalblock.ll
unittests/IR/IRBuilderTest.cpp
unittests/IR/MetadataTest.cpp