diff options
| author | gingerBill <bill@gingerbill.org> | 2023-05-22 12:53:29 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-05-22 12:53:29 +0100 |
| commit | 8bf32ac697ea21ff3b37e5b31fe0fc10e700c9a4 (patch) | |
| tree | 77e96ea43b5faf78d81ca1d8158db59fe3e24add /src/llvm_backend_const.cpp | |
| parent | 540f724b1f57d0d5a40b65a59f6ee82e070c6ee5 (diff) | |
Minor change to handling of propagation of errors with `---` as a value
Diffstat (limited to 'src/llvm_backend_const.cpp')
| -rw-r--r-- | src/llvm_backend_const.cpp | 2 |
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; } |