aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-25 00:30:28 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-25 00:43:36 -0500
commit29e438fd1f77a13c3a3f128434198ac024d3e195 (patch)
tree73235c0b283adfdf0e621b7d0ed306f420d3d748 /src/analyze.cpp
parent15d415e10b81a66fa3b887fb2a0c20bbcd614d94 (diff)
downloadzig-29e438fd1f77a13c3a3f128434198ac024d3e195.tar.gz
zig-29e438fd1f77a13c3a3f128434198ac024d3e195.zip
more sentinel-terminated pointers std lib integration
See #3767
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 7c9171d74a..70dfd4f181 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -6550,7 +6550,7 @@ static bool const_values_equal_array(CodeGen *g, ConstExprValue *a, ConstExprVal
}
bool const_values_equal(CodeGen *g, ConstExprValue *a, ConstExprValue *b) {
- assert(a->type->id == b->type->id);
+ if (a->type->id != b->type->id) return false;
assert(a->special == ConstValSpecialStatic);
assert(b->special == ConstValSpecialStatic);
if (a->type == b->type) {