We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71bf498 commit b29930eCopy full SHA for b29930e
xls/dslx/frontend/ast_cloner.cc
@@ -1110,8 +1110,10 @@ class AstCloner : public AstNodeVisitor {
1110
const ConstConditionalTypeAnnotation* n) override {
1111
XLS_RETURN_IF_ERROR(ReplaceOrVisit(n->consequent_type()));
1112
XLS_RETURN_IF_ERROR(ReplaceOrVisit(n->alternate_type()));
1113
+ XLS_RETURN_IF_ERROR(ReplaceOrVisit(n->test()));
1114
old_to_new_[n] = module(n)->Make<ConstConditionalTypeAnnotation>(
- n->span(), n->test(),
1115
+ n->span(),
1116
+ down_cast<Expr*>(old_to_new_[n->test()]),
1117
down_cast<TypeAnnotation*>(old_to_new_[n->consequent_type()]),
1118
down_cast<TypeAnnotation*>(old_to_new_[n->alternate_type()]));
1119
return absl::OkStatus();
0 commit comments