From 6dd08d09ac59457257957a29f0beb9c8a809c4da Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Thu, 23 Jun 2022 15:28:50 -0700 Subject: [PATCH] Add workaround for StatementBlock declaration circularity (#1342) This won't be visible everywhere, but I think something's needed -- this workaround is temporary while I work on a bigger change to semantics. --- toolchain/semantics/nodes/function.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toolchain/semantics/nodes/function.h b/toolchain/semantics/nodes/function.h index d303912975f3..6a47639056b7 100644 --- a/toolchain/semantics/nodes/function.h +++ b/toolchain/semantics/nodes/function.h @@ -13,6 +13,11 @@ #include "toolchain/semantics/nodes/declared_name.h" #include "toolchain/semantics/nodes/pattern_binding.h" +// TODO: StatementBlock has some circularity in its forward declarations that +// needs to be fixed. These includes are a workaround. +#include "toolchain/semantics/nodes/expression_statement.h" +#include "toolchain/semantics/nodes/return.h" + namespace Carbon::Semantics { // Represents `fn name(params...) [-> return_expr] body`.