diff --git a/frontends/p4/def_use.h b/frontends/p4/def_use.h index 8b39e4d9698..b21dd68e26e 100644 --- a/frontends/p4/def_use.h +++ b/frontends/p4/def_use.h @@ -466,8 +466,8 @@ class AllDefinitions : public IHasDbPrint { /** * Computes the write set for each expression and statement. * - * This pass is run for each parser and control separately. It - * controls precisely the visit order --- to simulate a simbolic + * This pass is run for each parser and control separately. It + * controls precisely the visit order --- to simulate a symbolic * execution of the program. * * @pre Must be executed after variable initializers have been removed. diff --git a/frontends/p4/simplifyParsers.cpp b/frontends/p4/simplifyParsers.cpp index 0a7845c9b1a..7a93d87dcb2 100644 --- a/frontends/p4/simplifyParsers.cpp +++ b/frontends/p4/simplifyParsers.cpp @@ -117,7 +117,8 @@ class CollapseChains : public Transform { auto node = oe.first; // Avoid merging in case of state annotation if (!node->annotations->annotations.empty()) { - if (!node->getAnnotation("name") || node->annotations->annotations.size() != 1) + if (!node->getAnnotation(IR::Annotation::nameAnnotation) || + node->annotations->annotations.size() != 1) continue; } auto outedges = oe.second;