projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f537137
)
Fix -Werror build.
author
Richard Smith
<richard-llvm@metafoo.co.uk>
Tue, 8 Mar 2016 23:16:16 +0000
(23:16 +0000)
committer
Richard Smith
<richard-llvm@metafoo.co.uk>
Tue, 8 Mar 2016 23:16:16 +0000
(23:16 +0000)
llvm-svn: 262965
clang/lib/CodeGen/CGExprAgg.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGExprAgg.cpp
b/clang/lib/CodeGen/CGExprAgg.cpp
index
53131f7
..
42aa945
100644
(file)
--- 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->b
ases())
+
while (ILEElement != CXXRD->getNumB
ases())
NumNonZeroBytes +=
GetNumNonZeroBytesInInit(ILE->getInit(ILEElement++), CGF);
for (const auto *Field : SD->fields()) {