diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2011-04-09 00:25:15 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2011-04-09 00:25:15 +0000 |
| commit | d85ae78c4879788681802f862b132224def6979b (patch) | |
| tree | 6db56595874c449fd97cfcf72b7752bd3607e2db /clang/lib/CodeGen | |
| parent | 7ccf3756220db77c528ccaf3a4972a86dd0c387f (diff) | |
| download | bcm5719-llvm-d85ae78c4879788681802f862b132224def6979b.tar.gz bcm5719-llvm-d85ae78c4879788681802f862b132224def6979b.zip | |
Apply explicit braces to avoid ambiguous 'else' [-Wparentheses]
llvm-svn: 129176
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 578ee1a764c..f3d68e9a8d9 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1288,10 +1288,10 @@ llvm::DIType CGDebugInfo::CreateType(const ArrayType *Ty, 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; |

