Rename file
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -161,8 +161,8 @@ want to export all the symbols, we can namespace them optionally.
|
|||||||
#include "parsing.cpp"
|
#include "parsing.cpp"
|
||||||
#include "typechecking.h"
|
#include "typechecking.h"
|
||||||
#include "typechecking.cpp"
|
#include "typechecking.cpp"
|
||||||
#include "c_codegen.cpp"
|
|
||||||
|
|
||||||
|
#include "c_language_codegen.cpp"
|
||||||
#include "bytecode_interpreter.cpp"
|
#include "bytecode_interpreter.cpp"
|
||||||
#include "bytecode_codegen.cpp"
|
#include "bytecode_codegen.cpp"
|
||||||
|
|
||||||
|
|||||||
@@ -1113,7 +1113,7 @@ resolve_expr(Ast_Expr *ast, Resolve_Flag flags, Ast_Type *compound_context){
|
|||||||
node->resolved_type = value.type;
|
node->resolved_type = value.type;
|
||||||
|
|
||||||
if(is_const){
|
if(is_const){
|
||||||
// We don't need to propagte deeps for const values cause we are rewritting them
|
// We don't need to propagte types for const values cause we are rewritting them
|
||||||
rewrite_into_const(node, Ast_Binary, value);
|
rewrite_into_const(node, Ast_Binary, value);
|
||||||
return operand_const_rvalue(value);
|
return operand_const_rvalue(value);
|
||||||
}
|
}
|
||||||
@@ -1144,6 +1144,7 @@ resolve_expr(Ast_Expr *ast, Resolve_Flag flags, Ast_Type *compound_context){
|
|||||||
rewrite_into_const(node, Ast_Array, value.value);
|
rewrite_into_const(node, Ast_Array, value.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
node->resolved_type = type_pointer(value.type_val);
|
node->resolved_type = type_pointer(value.type_val);
|
||||||
return operand_type(node->resolved_type);
|
return operand_type(node->resolved_type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user