aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_const.cpp
diff options
context:
space:
mode:
authorjon lipstate <52809771+jon-lipstate@users.noreply.github.com>2023-05-30 08:23:28 -0700
committerGitHub <noreply@github.com>2023-05-30 08:23:28 -0700
commitb223bc0302b54bb0629bd94d0b16e0f0720b6682 (patch)
treeeaa5de636a3fd8f5b008270fbaff268f40769f8c /src/llvm_backend_const.cpp
parentf5dcbf517b88d7479fa12d5f3b59183a447cae6f (diff)
parent3562a38f8cdd43792b6cdfd3327d16b65d25e5d0 (diff)
Merge branch 'odin-lang:master' into attr_error
Diffstat (limited to 'src/llvm_backend_const.cpp')
-rw-r--r--src/llvm_backend_const.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp
index 8db6e2a1f..ea25a4594 100644
--- a/src/llvm_backend_const.cpp
+++ b/src/llvm_backend_const.cpp
@@ -1,6 +1,6 @@
gb_internal bool lb_is_const(lbValue value) {
LLVMValueRef v = value.value;
- if (is_type_untyped_nil(value.type) || is_type_untyped_undef(value.type)) {
+ if (is_type_untyped_nil(value.type)) {
// TODO(bill): Is this correct behaviour?
return true;
}