[llvm] r208519 - CodeGen: add parenthesis around complex expression
Saleem Abdulrasool
compnerd at compnerd.org
Sun May 11 23:08:18 PDT 2014
Author: compnerd
Date: Mon May 12 01:08:18 2014
New Revision: 208519
URL: http://llvm.org/viewvc/llvm-project?rev=208519&view=rev
Log:
CodeGen: add parenthesis around complex expression
Add missing parenthesis suggested by GCC. NFC.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp?rev=208519&r1=208518&r2=208519&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp Mon May 12 01:08:18 2014
@@ -760,11 +760,11 @@ static bool isUnsignedDIType(DwarfDebug
DIBasicType BTy(Ty);
assert(BTy.isBasicType());
unsigned Encoding = BTy.getEncoding();
- assert(Encoding == dwarf::DW_ATE_unsigned ||
- Encoding == dwarf::DW_ATE_unsigned_char ||
- Encoding == dwarf::DW_ATE_signed ||
- Encoding == dwarf::DW_ATE_signed_char ||
- Encoding == dwarf::DW_ATE_boolean && "Unsupported encoding");
+ assert((Encoding == dwarf::DW_ATE_unsigned ||
+ Encoding == dwarf::DW_ATE_unsigned_char ||
+ Encoding == dwarf::DW_ATE_signed ||
+ Encoding == dwarf::DW_ATE_signed_char ||
+ Encoding == dwarf::DW_ATE_boolean) && "Unsupported encoding");
return (Encoding == dwarf::DW_ATE_unsigned ||
Encoding == dwarf::DW_ATE_unsigned_char ||
Encoding == dwarf::DW_ATE_boolean);
More information about the llvm-commits
mailing list