From 686bd64d0c269ff948c029d6bf94af7b87d00213 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 28 Apr 2014 22:27:26 +0000 Subject: [PATCH] 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) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207456 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 2dc539ed9cc..fcb8ee1fb70 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -590,10 +590,10 @@ std::unique_ptr 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, 8> Children; -- 2.34.1