Replace the dangling context hotfix with an assertion.

llvm-svn: 194883
This commit is contained in:
Adrian Prantl 2013-11-15 23:21:39 +00:00
parent 56045cb219
commit 4583f7d51a
1 changed files with 1 additions and 4 deletions

View File

@ -886,10 +886,7 @@ DIE *CompileUnit::getOrCreateTypeDIE(const MDNode *TyNode) {
// Construct the context before querying for the existence of the DIE in case
// such construction creates the DIE.
DIE *ContextDIE = getOrCreateContextDIE(resolve(Ty.getContext()));
// TODO: Investigate if this beavior is intentional and possibly
// replace it with an assert.
if (!ContextDIE)
ContextDIE = getCUDie();
assert(ContextDIE);
DIE *TyDIE = getDIE(Ty);
if (TyDIE)