[llvm] r267934 - Add parentheses to silence -Wparentheses warnings.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 13:26:30 PDT 2016


Author: zturner
Date: Thu Apr 28 15:26:30 2016
New Revision: 267934

URL: http://llvm.org/viewvc/llvm-project?rev=267934&view=rev
Log:
Add parentheses to silence -Wparentheses warnings.

Modified:
    llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp

Modified: llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp?rev=267934&r1=267933&r2=267934&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp Thu Apr 28 15:26:30 2016
@@ -125,18 +125,18 @@ std::error_code PDBDbiStream::reload() {
   for (auto Info : Range)
     ModuleInfos.push_back(ModuleInfoEx(Info));
 
-  if (EC = readSubstream(SecContrSubstream, Header->SecContrSubstreamSize))
+  if ((EC = readSubstream(SecContrSubstream, Header->SecContrSubstreamSize)))
     return EC;
-  if (EC = readSubstream(SecMapSubstream, Header->SectionMapSize))
+  if ((EC = readSubstream(SecMapSubstream, Header->SectionMapSize)))
     return EC;
-  if (EC = readSubstream(FileInfoSubstream, Header->FileInfoSize))
+  if ((EC = readSubstream(FileInfoSubstream, Header->FileInfoSize)))
     return EC;
-  if (EC = readSubstream(TypeServerMapSubstream, Header->TypeServerSize))
+  if ((EC = readSubstream(TypeServerMapSubstream, Header->TypeServerSize)))
     return EC;
-  if (EC = readSubstream(ECSubstream, Header->ECSubstreamSize))
+  if ((EC = readSubstream(ECSubstream, Header->ECSubstreamSize)))
     return EC;
 
-  if (EC = initializeFileInfo())
+  if ((EC = initializeFileInfo()))
     return EC;
 
   return std::error_code();




More information about the llvm-commits mailing list