diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-07-16 19:26:15 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-07-16 19:26:15 -0400 |
| commit | 0fa24b6b7568557c29c9b3ee213ce2b06fcd6367 (patch) | |
| tree | aac947ab8d58bb797bcadf5076729312fbbebb4f /src/ir.cpp | |
| parent | 9b56efc957dfb70ab70a74df3da55a9215e27b8d (diff) | |
| download | zig-0fa24b6b7568557c29c9b3ee213ce2b06fcd6367.tar.gz zig-0fa24b6b7568557c29c9b3ee213ce2b06fcd6367.zip | |
allow implicit cast of undefined to optional
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 0804134d2a..35b6b4cef4 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -9408,7 +9408,7 @@ static IrInstruction *ir_analyze_maybe_wrap(IrAnalyze *ira, IrInstruction *sourc if (type_is_invalid(casted_payload->value.type)) return ira->codegen->invalid_instruction; - ConstExprValue *val = ir_resolve_const(ira, casted_payload, UndefBad); + ConstExprValue *val = ir_resolve_const(ira, casted_payload, UndefOk); if (!val) return ira->codegen->invalid_instruction; |
