aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorJimmi Holst Christensen <jimmi@ziglang.org>2019-04-06 11:04:55 +0200
committerJimmi Holst Christensen <jimmi@ziglang.org>2019-04-06 11:04:55 +0200
commit65cf5a8e44f299bb24e139cc25df717f1ddba455 (patch)
treefc0237b5716eef232a14aed6c13f8c6b6a554859 /src/ir.cpp
parent3109c898505820fb8cc89f87759292a9aebe3db1 (diff)
downloadzig-65cf5a8e44f299bb24e139cc25df717f1ddba455.tar.gz
zig-65cf5a8e44f299bb24e139cc25df717f1ddba455.zip
removed todo comment and added test
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 102ccc6f4a..c572e3c885 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -16309,9 +16309,6 @@ static IrInstruction *ir_analyze_instruction_to_ptr_type(IrAnalyze *ira,
ZigType *ptr_type;
if (type_entry->id == ZigTypeIdArray) {
- // TODO: Allow capturing pointer to const array.
- // const a = "123"; for (a) |*c| continue;
- // error: expected type '*u8', found '*const u8'
ptr_type = get_pointer_to_type(ira->codegen, type_entry->data.array.child_type, ptr_ptr_type->data.pointer.is_const);
} else if (is_array_ref(type_entry)) {
ptr_type = get_pointer_to_type(ira->codegen,