[cfe-commits] r57273 - /cfe/trunk/lib/AST/Expr.cpp
Ted Kremenek
kremenek at apple.com
Tue Oct 7 16:07:11 PDT 2008
Author: kremenek
Date: Tue Oct 7 18:07:10 2008
New Revision: 57273
URL: http://llvm.org/viewvc/llvm-project?rev=57273&view=rev
Log:
Fixed a masked bug when iterating over the child expressions of SizeOfAlignOfTypeExpr. This bug was unmasked by recent changes to StmtIterator.
Modified:
cfe/trunk/lib/AST/Expr.cpp
Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=57273&r1=57272&r2=57273&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Tue Oct 7 18:07:10 2008
@@ -1264,10 +1264,10 @@
if (VariableArrayType* T = dyn_cast<VariableArrayType>(Ty.getTypePtr()))
return child_iterator(T);
else
- return child_iterator();
+ return child_iterator((VariableArrayType*)0);
}
Stmt::child_iterator SizeOfAlignOfTypeExpr::child_end() {
- return child_iterator();
+ return child_iterator((VariableArrayType*)0);
}
// ArraySubscriptExpr
More information about the cfe-commits
mailing list