aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-05-16 13:00:16 +0100
committergingerBill <bill@gingerbill.org>2021-05-16 13:00:16 +0100
commit2e633f57a065b09c9b0c7ad16f393762475a308a (patch)
treea50ea89ee68286166e7c9f332cb5a6aafb567b2b /src/llvm_backend.cpp
parent50369cf19ca6aceb342e4688aee1d1903d7a1bb8 (diff)
Add concrete type information for untyped values as procedure arguments
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index 41b1e8fc9..c46c4fd85 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -11386,6 +11386,7 @@ lbValue lb_build_expr(lbProcedure *p, Ast *expr) {
if (tv.value.kind != ExactValue_Invalid) {
// NOTE(bill): Short on constant values
+ // GB_ASSERT_MSG(!is_type_untyped(tv.type), "%s @ %s", type_to_string(tv.type), token_pos_to_string(expr_pos));
return lb_const_value(p->module, tv.type, tv.value);
}