diff options
author | Steve Naroff <snaroff@apple.com> | 2008-05-07 16:50:14 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-05-07 16:50:14 +0000 |
commit | 81e72e4c231a47633e36a6c2f3ded83630963b3f (patch) | |
tree | a324f68d30c1b3e993531930ed9d6bcb4148ed30 | |
parent | 05a7b0e109392c86e2dd0aeb1663a68934136359 (diff) |
Fix off-by-one error.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50815 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/Expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 69dca5af55..cad6065e2e 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -1369,7 +1369,7 @@ Stmt::child_iterator InitListExpr::child_begin() { return reinterpret_cast<Stmt**>(&InitExprs[0]); } Stmt::child_iterator InitListExpr::child_end() { - return reinterpret_cast<Stmt**>(&InitExprs[getNumInits()]); + return reinterpret_cast<Stmt**>(&InitExprs[getNumInits()-1]); } // ObjCStringLiteral |