[cfe-commits] r129176 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Nick Lewycky nicholas at mxc.ca
Fri Apr 8 17:25:15 PDT 2011


Author: nicholas
Date: Fri Apr  8 19:25:15 2011
New Revision: 129176

URL: http://llvm.org/viewvc/llvm-project?rev=129176&view=rev
Log:
Apply explicit braces to avoid ambiguous 'else' [-Wparentheses]

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=129176&r1=129175&r2=129176&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Apr  8 19:25:15 2011
@@ -1288,10 +1288,10 @@
     while ((Ty = dyn_cast<ArrayType>(EltTy))) {
       int64_t UpperBound = 0;
       int64_t LowerBound = 0;
-      if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(Ty))
+      if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(Ty)) {
         if (CAT->getSize().getZExtValue())
           UpperBound = CAT->getSize().getZExtValue() - 1;
-      else
+      } else
         // This is an unbounded array. Use Low = 1, Hi = 0 to express such 
         // arrays.
         LowerBound = 1;





More information about the cfe-commits mailing list