mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Replace the dangling context hotfix with an assertion.
llvm-svn: 194883
This commit is contained in:
parent
37fe732f75
commit
f7219be43e
@ -886,10 +886,7 @@ DIE *CompileUnit::getOrCreateTypeDIE(const MDNode *TyNode) {
|
|||||||
// Construct the context before querying for the existence of the DIE in case
|
// Construct the context before querying for the existence of the DIE in case
|
||||||
// such construction creates the DIE.
|
// such construction creates the DIE.
|
||||||
DIE *ContextDIE = getOrCreateContextDIE(resolve(Ty.getContext()));
|
DIE *ContextDIE = getOrCreateContextDIE(resolve(Ty.getContext()));
|
||||||
// TODO: Investigate if this beavior is intentional and possibly
|
assert(ContextDIE);
|
||||||
// replace it with an assert.
|
|
||||||
if (!ContextDIE)
|
|
||||||
ContextDIE = getCUDie();
|
|
||||||
|
|
||||||
DIE *TyDIE = getDIE(Ty);
|
DIE *TyDIE = getDIE(Ty);
|
||||||
if (TyDIE)
|
if (TyDIE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user