aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2020-12-18 14:19:03 +0100
committerGitHub <noreply@github.com>2020-12-18 14:19:03 +0100
commitbd6ead32f8d05a9662c7fa6fde867b71da0e79c9 (patch)
treee610f06a230cca9d89bf075ec55e520dae83ad8e /src/types.cpp
parent934809397f1f5f567c0ec668de72d2ac28e85f74 (diff)
parent3558848da818dc330d139ff5d756bb9b9498b1d4 (diff)
Merge pull request #1 from odin-lang/master
update from master
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index df87cb645..d79a3337a 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1720,6 +1720,9 @@ TypeTuple *get_record_polymorphic_params(Type *t) {
bool is_type_polymorphic(Type *t, bool or_specialized=false) {
+ if (t == nullptr) {
+ return false;
+ }
if (t->flags & TypeFlag_InProcessOfCheckingPolymorphic) {
return false;
}