summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/ast-tree.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/compiler/ast-tree.c b/src/compiler/ast-tree.c
index b5ab3a2..cb1fa03 100644
--- a/src/compiler/ast-tree.c
+++ b/src/compiler/ast-tree.c
@@ -4031,6 +4031,7 @@ bool setTypesOperatorAccess(AstTree *tree, AstTreeSetTypesHelper helper) {
bool setTypesBuiltin(AstTree *tree, AstTreeSetTypesHelper helper,
AstTreeFunctionCall *functionCall) {
+ (void)helper;
AstTreeBuiltin *metadata = tree->metadata;
switch (metadata->token) {
@@ -4075,19 +4076,7 @@ bool setTypesBuiltin(AstTree *tree, AstTreeSetTypesHelper helper,
}
}
- if (from == NULL || to == NULL ||
- !setAllTypes(from,
- (AstTreeSetTypesHelper){
- .lookingType = NULL,
- .treeHelper = helper.treeHelper,
- },
- NULL, NULL) ||
- !setAllTypes(to,
- (AstTreeSetTypesHelper){
- .lookingType = NULL,
- .treeHelper = helper.treeHelper,
- },
- NULL, NULL)) {
+ if (from == NULL || to == NULL) {
return false;
}