about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorScott Olson <scott@solson.me>2015-12-29 22:55:38 -0600
committerScott Olson <scott@solson.me>2015-12-29 22:55:38 -0600
commitb65277496c8848cd6f08b55e8b413096c74b92af (patch)
treef8dbcc24bf2caca334e25a621eea87dc037ca6cb /src/rustllvm/RustWrapper.cpp
parent6e2a64b57a74f35bef215972adf1b803cff288bd (diff)
downloadrust-b65277496c8848cd6f08b55e8b413096c74b92af.tar.gz
rust-b65277496c8848cd6f08b55e8b413096c74b92af.zip
Fix argument indices in MIR for closures.
Previously, all references to closure arguments went to the argument before the
one they should (e.g. to arg1 when it was supposed to be arg2). This was because
the MIR builder did not account for the implicit arguments that come before the
explicit arguments, and closures have one implicit argument - the struct
containing the captures.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions