diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-28 22:27:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-28 22:27:26 +0000 |
commit | d67ffe8b7377ed8e39ef2be4ab088ec28159fb9e (patch) | |
tree | 5db462379d2bb8b9aa7234b187570467e1b5fa79 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 83dd2fad2ac8fd2cdd60573b6adbbe160baf1923 (diff) | |
download | bcm5719-llvm-d67ffe8b7377ed8e39ef2be4ab088ec28159fb9e.tar.gz bcm5719-llvm-d67ffe8b7377ed8e39ef2be4ab088ec28159fb9e.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 2dc539ed9cc..fcb8ee1fb70 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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 " - "constructSubprogramScopeDIE for non-inlined " - "subprograms")); + assert((Scope->getInlinedAt() || !DS.isSubprogram()) && + "Only handle inlined subprograms here, use " + "constructSubprogramScopeDIE for non-inlined " + "subprograms"); SmallVector<std::unique_ptr<DIE>, 8> Children; |