Let subprograms with instructions without parent scopes fail the
authorAdrian Prantl <aprantl@apple.com>
Wed, 21 Jan 2015 18:32:56 +0000 (18:32 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 21 Jan 2015 18:32:56 +0000 (18:32 +0000)
commit1292e24d0e10720b3bac7506398f96c2a2ebed6c
tree7e4383df235760c5531c82816f95678017a02cb8
parent02b882a69beff06967f0c093003b30da7ef70dcd
Let subprograms with instructions without parent scopes fail the
verification. Tested via a unit test.

Follow-up to r226616.

llvm-svn: 226684
llvm/lib/IR/DebugInfo.cpp
llvm/unittests/IR/IRBuilderTest.cpp