[PATCH, d] Committed use guard to prevent declaration pass from running multiple times
Sun Apr 21 08:44:00 GMT 2019
This patch adds checks for semanticRun in the Declaration visitor
passes. While it shouldn't happen during normal traversal of the AST
provided from the front-end, there are some cases where declarations
need to be visited out of order, such as what is being done in PR
d/89017, it then becomes necessary to guard against this.
Regression tested on x86_64-linux-gnu.
Committed to trunk as r270478.
2019-04-21 Iain Buclaw <email@example.com>
* decl.cc (DeclVisitor::visit(Import)): Set semanticRun after
completion, guard against being called more than once.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2782 bytes
Desc: not available
More information about the Gcc-patches