aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-03 10:51:43 +0100
committergingerBill <bill@gingerbill.org>2018-06-03 10:51:43 +0100
commit398109ac841cb8c405b54da529837800ed8cddd1 (patch)
treecc19289df5a606674e61ee0d22385aa4174ff92c /src/ir.cpp
parent12b870ba6671854a3de8605f8dd8f36d1de90c6a (diff)
Remove need for __llvm_core
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 65fa38932..4e670fbd6 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -1327,7 +1327,9 @@ irValue *ir_add_global_string_array(irModule *m, String string) {
}
void ir_add_foreign_library_path(irModule *m, Entity *e) {
- GB_ASSERT(e != nullptr);
+ if (e == nullptr) {
+ return;
+ }
GB_ASSERT(e->kind == Entity_LibraryName);
GB_ASSERT(e->LibraryName.used);