aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-06-21 14:43:55 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-06-21 14:44:35 -0400
commit5f38d6e2e97829ed74f06a96b5d07a2c68516063 (patch)
tree6278f9d0ffeb86329094d8d0715dee8201c6ca65 /src/ir.cpp
parent47dd1049c8ef4064084af05e7b62becf502e41e6 (diff)
downloadzig-5f38d6e2e97829ed74f06a96b5d07a2c68516063.tar.gz
zig-5f38d6e2e97829ed74f06a96b5d07a2c68516063.zip
add casting docs, __extenddftf2, and __extendsftf2
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 950d051492..c6078e755d 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -10092,7 +10092,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst
}
}
- // cast from &const [N]T to []const T
+ // cast from *const [N]T to []const T
if (is_slice(wanted_type) &&
actual_type->id == TypeTableEntryIdPointer &&
actual_type->data.pointer.is_const &&
@@ -10111,7 +10111,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst
}
}
- // cast from [N]T to &const []const T
+ // cast from [N]T to *const []const T
if (wanted_type->id == TypeTableEntryIdPointer &&
wanted_type->data.pointer.is_const &&
is_slice(wanted_type->data.pointer.child_type) &&
@@ -10136,7 +10136,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst
}
}
- // cast from [N]T to ?[]const N
+ // cast from [N]T to ?[]const T
if (wanted_type->id == TypeTableEntryIdOptional &&
is_slice(wanted_type->data.maybe.child_type) &&
actual_type->id == TypeTableEntryIdArray)