r196839 - Fix return of empty range in MSAsmStmt::children
Reid Kleckner
reid at kleckner.net
Mon Dec 9 15:34:56 PST 2013
Author: rnk
Date: Mon Dec 9 17:34:56 2013
New Revision: 196839
URL: http://llvm.org/viewvc/llvm-project?rev=196839&view=rev
Log:
Fix return of empty range in MSAsmStmt::children
Modified:
cfe/trunk/include/clang/AST/Stmt.h
Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=196839&r1=196838&r2=196839&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Mon Dec 9 17:34:56 2013
@@ -1767,7 +1767,7 @@ public:
}
child_range children() {
- return child_range(&Exprs[0], &Exprs[0]);
+ return child_range(&Exprs[0], &Exprs[NumInputs + NumOutputs]);
}
};
More information about the cfe-commits
mailing list