forked from OSchip/llvm-project
Satisfy sub-optimal GCC warning.
(Clang doesn't warn here because it knows the string is benign - the assert still checks what it's intended to - though putting the correct parens does make clang-format format the code a little better) llvm-svn: 207456
This commit is contained in:
parent
83dd2fad2a
commit
d67ffe8b73
|
@ -590,10 +590,10 @@ std::unique_ptr<DIE> DwarfDebug::constructScopeDIE(DwarfCompileUnit &TheCU,
|
|||
|
||||
DIScope DS(Scope->getScopeNode());
|
||||
|
||||
assert(Scope->getInlinedAt() ||
|
||||
(!DS.isSubprogram() && "Only handle inlined subprograms here, use "
|
||||
assert((Scope->getInlinedAt() || !DS.isSubprogram()) &&
|
||||
"Only handle inlined subprograms here, use "
|
||||
"constructSubprogramScopeDIE for non-inlined "
|
||||
"subprograms"));
|
||||
"subprograms");
|
||||
|
||||
SmallVector<std::unique_ptr<DIE>, 8> Children;
|
||||
|
||||
|
|
Loading…
Reference in New Issue