Fix -Werror build.

llvm-svn: 262965
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index 53131f7..42aa945 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -1344,7 +1344,7 @@
       
       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()) {