summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parsers/decl/function_decl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parsers/decl/function_decl.cpp b/src/parsers/decl/function_decl.cpp
index 0cf4b19..29047f5 100644
--- a/src/parsers/decl/function_decl.cpp
+++ b/src/parsers/decl/function_decl.cpp
@@ -35,6 +35,9 @@ void parseFunctionDeclNode(FunctionDeclNode *node)
fillLocation(node);
fillDeclLabel(node);
fillDeclAutoGenerated(node);
+
+ Log::log(node);
+
setPrintField(node, DECL_FUNCTION_VERSIONED, hasTargets);
setPrintField(node, DECL_VIRTUAL_P, isVirtual);
setPrintField(node, DECL_FINAL_P, isFinal);
@@ -43,8 +46,6 @@ void parseFunctionDeclNode(FunctionDeclNode *node)
setPrintField(node, DECL_EXTERNAL, isExternal);
setPrintField(node, TREE_PUBLIC, isPublic);
- Log::log(node);
-
fillDeclAttributes(node);
node->functionType = static_cast<FunctionTypeNode*>(createParseNode(
node,