summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-28 22:27:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-28 22:27:26 +0000
commitd67ffe8b7377ed8e39ef2be4ab088ec28159fb9e (patch)
tree5db462379d2bb8b9aa7234b187570467e1b5fa79 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent83dd2fad2ac8fd2cdd60573b6adbbe160baf1923 (diff)
downloadbcm5719-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.cpp8
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;
OpenPOWER on IntegriCloud