projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e657bbd
)
DebugInfo: Assert that all abstract scopes are subprograms, rather than conditionalizing.
author
David Blaikie
<dblaikie@gmail.com>
Fri, 18 Jul 2014 22:26:59 +0000
(22:26 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Fri, 18 Jul 2014 22:26:59 +0000
(22:26 +0000)
There's nothing else these should ever be...
llvm-svn: 213417
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index
8731c88
..
8064209
100644
(file)
--- a/
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-1569,8
+1569,7
@@
void DwarfDebug::endFunction(const MachineFunction *MF) {
// Construct abstract scopes.
for (LexicalScope *AScope : LScopes.getAbstractScopesList()) {
DISubprogram SP(AScope->getScopeNode());
- if (!SP.isSubprogram())
- continue;
+ assert(SP.isSubprogram());
// Collect info for variables that were optimized out.
DIArray Variables = SP.getVariables();
for (unsigned i = 0, e = Variables.getNumElements(); i != e; ++i) {