File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
clang/lib/Analysis/FlowSensitive Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -513,8 +513,7 @@ class ResultObjectVisitor : public RecursiveASTVisitor<ResultObjectVisitor> {
513
513
if (!InitList->isSemanticForm ())
514
514
return ;
515
515
if (InitList->isTransparent ()) {
516
- for (Expr *Init : InitList->inits ())
517
- PropagateResultObject (Init, Loc);
516
+ PropagateResultObject (InitList->getInit (0 ), Loc);
518
517
return ;
519
518
}
520
519
@@ -554,7 +553,7 @@ class ResultObjectVisitor : public RecursiveASTVisitor<ResultObjectVisitor> {
554
553
555
554
// All other expression nodes that propagate a record prvalue should have
556
555
// exactly one child.
557
- llvm:: SmallVector<Stmt *> Children (E->child_begin (), E->child_end ());
556
+ SmallVector<Stmt *, 1 > Children (E->child_begin (), E->child_end ());
558
557
LLVM_DEBUG ({
559
558
if (Children.size () != 1 )
560
559
E->dump ();
You can’t perform that action at this time.
0 commit comments