Variable using an enumeration as array index causes infinite loop #299

Once we determine the type of a variable we should stop processing the
AST tree at that point. We do this for record types but not for the
built in types.  Changed the return value of the process builtin
function to false so we stop processing.
This commit is contained in:
Alex Lin 2016-09-01 16:06:33 -05:00
parent 066554b2f7
commit 919a8e2068

View File

@ -122,7 +122,7 @@ bool FieldVisitor::VisitBuiltinType(clang::BuiltinType *bt) {
break ;
}
}
return true;
return false;
}
bool FieldVisitor::VisitConstantArrayType(clang::ConstantArrayType *cat) {