aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-14 17:34:00 +0100
committergingerBill <bill@gingerbill.org>2023-07-14 17:34:00 +0100
commitca442defbbaae4269ff947dfc14059f69a5cdaec (patch)
treea8271218dac5b88f7d9a3ec8a2953bb39473d28d /src/tilde_stmt.cpp
parentb17ebeb6f66f5f7e24b5a1ca32baf6855185eea8 (diff)
Mocking out call related stuff
Diffstat (limited to 'src/tilde_stmt.cpp')
-rw-r--r--src/tilde_stmt.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tilde_stmt.cpp b/src/tilde_stmt.cpp
index 52bbb3ab9..f7e68d483 100644
--- a/src/tilde_stmt.cpp
+++ b/src/tilde_stmt.cpp
@@ -1,5 +1,4 @@
-
-gb_internal cgValue cg_emit_load(cgProcedure *p, cgValue const &ptr, bool is_volatile=false) {
+gb_internal cgValue cg_emit_load(cgProcedure *p, cgValue const &ptr, bool is_volatile) {
GB_ASSERT(is_type_pointer(ptr.type));
Type *type = type_deref(ptr.type);
TB_DataType dt = cg_data_type(type);
@@ -33,10 +32,10 @@ gb_internal cgValue cg_emit_load(cgProcedure *p, cgValue const &ptr, bool is_vol
return cg_value(tb_inst_load(p->func, dt, the_ptr, alignment, is_volatile), type);
}
-gb_internal void cg_emit_store(cgProcedure *p, cgValue dst, cgValue const &src, bool is_volatile=false) {
+gb_internal void cg_emit_store(cgProcedure *p, cgValue dst, cgValue const &src, bool is_volatile) {
if (dst.kind == cgValue_Addr) {
dst = cg_emit_load(p, dst, is_volatile);
- } else if (dst.kind = cgValue_Symbol) {
+ } else if (dst.kind == cgValue_Symbol) {
dst = cg_value(tb_inst_get_symbol_address(p->func, dst.symbol), dst.type);
}