]> granicus.if.org Git - clang/commitdiff
Fixed a masked bug when iterating over the child expressions of SizeOfAlignOfTypeExpr...
authorTed Kremenek <kremenek@apple.com>
Tue, 7 Oct 2008 23:07:10 +0000 (23:07 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 7 Oct 2008 23:07:10 +0000 (23:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57273 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Expr.cpp

index 6cdaacd6897903b935a2b199de83486a56ac11c5..78d83d85081c5e550c8df15277b91dae0133308e 100644 (file)
@@ -1264,10 +1264,10 @@ Stmt::child_iterator SizeOfAlignOfTypeExpr::child_begin() {
   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