rust/tests/compile-fail
Scott Olson 6503148589 Optimize reads of field projections of ByValPairs.
This helps in the case of field projections of the results of checked
binary operations. E.g.:

    _1 = CheckedAdd(const 1i32, const 2i32);
    assert(!(_1.1: bool), "attempt to add with overflow" -> bb1

Previously, the `_1.1` field projection lvalue would force_allocate `_1`
so it could read the memory in the old-style way. Now checked math with
its assertions will not allocate at all.

The oom2.rs compile-fail test had to be re-written, because the old
version of it no longer allocates _at all_ (yay!), so it would hit the
stack depth limit instead, from recursion.
2016-10-16 19:58:22 -06:00
..
2016-07-06 11:19:24 +02:00
2016-09-13 13:08:57 +02:00
2016-06-23 09:36:37 +02:00
2016-09-22 15:47:16 +02:00
2016-10-15 23:31:42 -06:00
2016-09-27 17:02:04 +02:00
2016-09-22 15:47:16 +02:00
2016-09-22 15:47:16 +02:00