aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
AgeCommit message (Collapse)Author
2019-07-01added invalid switch prong erroremekoi
added error for switch prong with different payloads and support for capturing payload on switch prongs with payloads of the same type
2019-06-27fix for with null and T peer types and inferred result location typeAndrew Kelley
See #2762
2019-06-27fix switch with null and T peer types and inferred result location typeAndrew Kelley
closes #2762
2019-06-27compile error for using slice as array init expr typeAndrew Kelley
when there are more than 0 elements. closes #2764
2019-06-26Merge remote-tracking branch 'origin/master' into copy-elision-3Andrew Kelley
2019-06-26all tests passing on linuxAndrew Kelley
2019-06-26fix peer type resolution: unreachable, error set, unreachableAndrew Kelley
2019-06-26fix peer type resolution with nullAndrew Kelley
2019-06-25all compile error tests passingAndrew Kelley
2019-06-25fix several compile error test regressionsAndrew Kelley
2019-06-25fix infinite loop when error in peer resolutionAndrew Kelley
2019-06-25fix implicit cast vector to arrayAndrew Kelley
2019-06-25fix union init with void payloadAndrew Kelley
all std lib tests passing now
2019-06-24fix compile error when building zig w/ clangMichael Dusan
errors as reported on macOS w/ Xcode 10.1, 10.2 and 11.0: src/ir.cpp:23285:16: error: variable 'bits' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] } else if (float_type->id == ZigTypeIdFloat) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/ir.cpp:23288:13: note: uninitialized use occurs here switch (bits) { ^~~~ src/ir.cpp:23285:12: note: remove the 'if' if its condition is always true } else if (float_type->id == ZigTypeIdFloat) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/ir.cpp:23281:18: note: initialize the variable 'bits' to silence this warning unsigned bits;
2019-06-23Merge branch 'simd2' of https://github.com/shawnl/zig into shawnl-simd2Andrew Kelley
2019-06-23fix some legacy coroutine stuffAndrew Kelley
2019-06-22fix another crashAndrew Kelley
2019-06-22elide redundant safety check when switching on tagged unionsAndrew Kelley
2019-06-22stage1: add @sin @cos @exp @exp2 @ln @log2 @log10 @fabs @floor @ceil @trunc ↵Shawn Landden
@round and expand @sqrt This revealed that the accuracy of ln is not as good as the current algorithm in musl and glibc, and should be ported again. v2: actually include tests v3: fix reversal of in and out arguments on f128M_sqrt() add test for @sqrt on comptime_float do not include @nearbyInt() until it works on all targets.
2019-06-22fix implicit cast fn call result to optional in field resultAndrew Kelley
2019-06-21fix return result loc and then switch with range...Andrew Kelley
...implicit casted to error union
2019-06-21fix implicit cast to optional to error union to return result locAndrew Kelley
2019-06-21fix implicit cast bitcast result to error union by returningAndrew Kelley
2019-06-21fix nested orelse and nested catchAndrew Kelley
2019-06-21blocks have result location semanticsAndrew Kelley
2019-06-21fix regression with zero sized arrayAndrew Kelley
thanks mikdusan!
2019-06-20fix loops with multiple break statementsAndrew Kelley
2019-06-20fix coroutinesAndrew Kelley
2019-06-20one more test passingAndrew Kelley
2019-06-19fix peer result loc fn call with comptime conditionAndrew Kelley
2019-06-19fix labeled break inside comptime if inside runtime ifAndrew Kelley
2019-06-19fix double getelementptr of runtime globalAndrew Kelley
2019-06-19Merge remote-tracking branch 'origin/master' into copy-elision-3Andrew Kelley
2019-06-19fix optional pointer to size zero structAndrew Kelley
2019-06-19fix `try` not setting error code on result locationAndrew Kelley
2019-06-19fix comptime test error for empty error setAndrew Kelley
2019-06-19fix detection of unable to evaluate constant expressionAndrew Kelley
2019-06-19fix comptime modification of const struct fieldAndrew Kelley
2019-06-19stage1: add support for @mulAdd fused-multiply-add for floats and vectors of ↵Shawn Landden
floats Not all of the softfloat library is being built.... Vector support is very buggy at the moment, but should work when the bugs are fixed. (as I had the same code working with another vector function, that hasn't been merged yet).
2019-06-18fix inline loop behavior with variable result locAndrew Kelley
2019-06-18back to many behavioral tests passingAndrew Kelley
2019-06-18fix problem with inferred error set return resultAndrew Kelley
2019-06-18fix bitcastAndrew Kelley
2019-06-18more miscellaneous fixesAndrew Kelley
when will it end
2019-06-18when resolving slice types, might need to...Andrew Kelley
...resolve alignment if custom alignment is provided fixes #2689
2019-06-18Revert "fixes resolving aligment of child type in slice"Andrew Kelley
This reverts commit aa60d2a688c965dcccf8e2c42afe5c180daba8fc. The copyright ownership of this 10 line patch is under dispute. See #2701 for details. So I'll revert it and then fix it myself without looking at this patch.
2019-06-18fix zero length array literal casted to sliceAndrew Kelley
2019-06-17misc fixesAndrew Kelley
2019-06-17inferred comptime array initsAndrew Kelley
2019-06-17fix function callsAndrew Kelley