mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
Replace the dangling context hotfix with an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
445fd04f53
commit
6bc810a499
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user