aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-12-13 13:10:51 +0000
committergingerBill <bill@gingerbill.org>2023-12-13 13:10:51 +0000
commite0652ee2f46284a21c1752f66e792b28d2c06871 (patch)
tree082f0db105435d520393763163cab7139ea13730 /src/tilde_stmt.cpp
parentbc99bacb2122f073133ddf6eeb31b4db56a99fa7 (diff)
Minor fix to call expr in tilde with variadic parameters
Diffstat (limited to 'src/tilde_stmt.cpp')
-rw-r--r--src/tilde_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tilde_stmt.cpp b/src/tilde_stmt.cpp
index 984fc1a0e..7c090064c 100644
--- a/src/tilde_stmt.cpp
+++ b/src/tilde_stmt.cpp
@@ -24,7 +24,7 @@ gb_internal TB_Node *cg_control_region(cgProcedure *p, char const *name) {
}
gb_internal cgValue cg_emit_load(cgProcedure *p, cgValue const &ptr, bool is_volatile) {
- GB_ASSERT(is_type_pointer(ptr.type));
+ GB_ASSERT_MSG(is_type_pointer(ptr.type), "%s", type_to_string(ptr.type));
Type *type = type_deref(ptr.type);
TB_DataType dt = cg_data_type(type);