summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 445fd04)
raw | patch | inline | side by side (parent: 445fd04)
author | Adrian Prantl <aprantl@apple.com> | |
Fri, 15 Nov 2013 23:21:39 +0000 (23:21 +0000) | ||
committer | Adrian Prantl <aprantl@apple.com> | |
Fri, 15 Nov 2013 23:21:39 +0000 (23:21 +0000) |
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194883 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | patch | blob | history |
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 508a6927c20968e158ebc425df8d4f5ff668cd8f..a47eeab430cf6dcb08a0bec3633e3813ed4fb0a6 100644 (file)
// 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)