summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-03-08 23:16:16 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-03-08 23:16:16 +0000
commit6365e46459a0c181a7416a2d00c5a644bf2d2440 (patch)
treeaef930c512b5941a732a2c6232e5bc7f7e8b8519 /clang/lib/CodeGen/CGExprAgg.cpp
parentf53713769dff181ab7d81b630daad3572d13ca64 (diff)
downloadbcm5719-llvm-6365e46459a0c181a7416a2d00c5a644bf2d2440.tar.gz
bcm5719-llvm-6365e46459a0c181a7416a2d00c5a644bf2d2440.zip
Fix -Werror build.
llvm-svn: 262965
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index 53131f7557f..42aa94575a7 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -1344,7 +1344,7 @@ static CharUnits GetNumNonZeroBytesInInit(const Expr *E, CodeGenFunction &CGF) {
unsigned ILEElement = 0;
if (auto *CXXRD = dyn_cast<CXXRecordDecl>(SD))
- for (auto &Base : CXXRD->bases())
+ while (ILEElement != CXXRD->getNumBases())
NumNonZeroBytes +=
GetNumNonZeroBytesInInit(ILE->getInit(ILEElement++), CGF);
for (const auto *Field : SD->fields()) {
OpenPOWER on IntegriCloud