forked from OSchip/llvm-project
Fixed bug in child_begin/child_end for CallExpr where we incorrectly calculated a Stmt** pointer
based on an offset within SubExprs. llvm-svn: 41512
This commit is contained in:
parent
5b3ed283f5
commit
251c9544e8
|
@ -780,10 +780,10 @@ Stmt::child_iterator ArraySubscriptExpr::child_end() {
|
|||
|
||||
// CallExpr
|
||||
Stmt::child_iterator CallExpr::child_begin() {
|
||||
return reinterpret_cast<Stmt**>(&SubExprs);
|
||||
return reinterpret_cast<Stmt**>(&SubExprs[0]);
|
||||
}
|
||||
Stmt::child_iterator CallExpr::child_end() {
|
||||
return reinterpret_cast<Stmt**>(&SubExprs)+NumArgs+ARGS_START;
|
||||
return reinterpret_cast<Stmt**>(&SubExprs[NumArgs+ARGS_START]);
|
||||
}
|
||||
|
||||
// MemberExpr
|
||||
|
|
Loading…
Reference in New Issue