mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 17:22:52 +00:00
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:
parent
066554b2f7
commit
919a8e2068
@ -122,7 +122,7 @@ bool FieldVisitor::VisitBuiltinType(clang::BuiltinType *bt) {
|
||||
break ;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool FieldVisitor::VisitConstantArrayType(clang::ConstantArrayType *cat) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user