Verifier: Add operand checks for remaining debug info

llvm-svn: 233565
This commit is contained in:
Duncan P. N. Exon Smith
2015-03-30 17:21:38 +00:00
parent 215e7edfe0
commit f9b4775c78
10 changed files with 98 additions and 77 deletions

View File

@@ -734,7 +734,7 @@ DISubprogram DIBuilder::createMethod(DIDescriptor Context, StringRef Name,
DINameSpace DIBuilder::createNameSpace(DIDescriptor Scope, StringRef Name,
DIFile File, unsigned LineNo) {
DINameSpace R = MDNamespace::get(VMContext, getNonCompileUnitScope(Scope),
File.getFileNode(), Name, LineNo);
File, Name, LineNo);
assert(R.Verify() &&
"createNameSpace should return a verifiable DINameSpace");
return R;