forked from OSchip/llvm-project
Avoid crash when child iterator gives null result.
llvm-svn: 65812
This commit is contained in:
parent
51adf5824e
commit
dd9427133a
|
@ -111,7 +111,8 @@ static void CollectBlockDeclRefInfo(const Stmt *S,
|
|||
CodeGenFunction::BlockInfo &Info) {
|
||||
for (Stmt::const_child_iterator I = S->child_begin(), E = S->child_end();
|
||||
I != E; ++I)
|
||||
CollectBlockDeclRefInfo(*I, Info);
|
||||
if (*I)
|
||||
CollectBlockDeclRefInfo(*I, Info);
|
||||
|
||||
if (const BlockDeclRefExpr *DE = dyn_cast<BlockDeclRefExpr>(S)) {
|
||||
// FIXME: Handle enums.
|
||||
|
|
Loading…
Reference in New Issue