aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-05-03 16:00:51 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-05-03 16:13:57 -0400
commit6756c27ca48f65c7f21b7a4365ff7a80069d2441 (patch)
tree02421041aafc483e0fc9611ce194104bc49fd587 /src/ir.cpp
parent6f66691214a0709d913d15772e7b130ede7977c9 (diff)
downloadzig-6756c27ca48f65c7f21b7a4365ff7a80069d2441.tar.gz
zig-6756c27ca48f65c7f21b7a4365ff7a80069d2441.zip
zig build: cache_root is relative to build_root
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 7f12c4dfa4..def7469a99 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -6001,21 +6001,6 @@ static ImplicitCastMatchResult ir_types_match_with_implicit_cast(IrAnalyze *ira,
}
}
- //// implicit [N]T to %[]const T
- //if (expected_type->id == TypeTableEntryIdErrorUnion &&
- // is_slice(expected_type->data.error.child_type) &&
- // actual_type->id == TypeTableEntryIdArray)
- //{
- // TypeTableEntry *ptr_type =
- // expected_type->data.error.child_type->data.structure.fields[slice_ptr_index].type_entry;
- // assert(ptr_type->id == TypeTableEntryIdPointer);
- // if ((ptr_type->data.pointer.is_const || actual_type->data.array.len == 0) &&
- // types_match_const_cast_only(ptr_type->data.pointer.child_type, actual_type->data.array.child_type))
- // {
- // return ImplicitCastMatchResultYes;
- // }
- //}
-
// implicit [N]T to &const []const N
if (expected_type->id == TypeTableEntryIdPointer &&
expected_type->data.pointer.is_const &&