diff options
| author | Brian Koropoff <bkoropoff@gmail.com> | 2014-11-06 20:40:32 -0800 |
|---|---|---|
| committer | Brian Koropoff <bkoropoff@gmail.com> | 2014-11-06 20:40:32 -0800 |
| commit | c3c72239b7130b947deb6272c6d0c05872697d91 (patch) | |
| tree | 97383144cef90d2f838c30036df5b419ab4ec82f /src/rustllvm/RustWrapper.cpp | |
| parent | b03a2755193cd756583bcf5831cf4545d75ecb8a (diff) | |
| download | rust-c3c72239b7130b947deb6272c6d0c05872697d91.tar.gz rust-c3c72239b7130b947deb6272c6d0c05872697d91.zip | |
Remove incorrect assert in trans
As an optimization, once unboxed closures receive their environment by value if it fits within the size of an `int`. An assert in this code path assumed that this would only occur if the environment had no more than a single free variable in it, but multiple smaller free variables can easily be packed into the space of an `int`, particularly if any of them are 0-sized. The assert can simply be removed. Closes #18652
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
