about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-05-02 16:47:07 +0200
committerGeorg Brandl <georg@python.org>2016-05-02 16:48:36 +0200
commit6fed0132f314622700da9cd9f5746cfc4f4bb87f (patch)
treed37b7028de650d0b71281be802235d67ee0c2782 /src/rustllvm/ExecutionEngineWrapper.cpp
parent855fb6192263a5c059325bb4b4e10b55e4e8ddbb (diff)
downloadrust-6fed0132f314622700da9cd9f5746cfc4f4bb87f.tar.gz
rust-6fed0132f314622700da9cd9f5746cfc4f4bb87f.zip
middle: reset loop labels while visiting closure
This should fix #31754 and follow-up #25343.  Before the latter, the
closure was visited twice in the context of the enclosing fn, which
made even a single closure with a loop label emit a warning.

With this change, the closure is still visited within the context
of the main fn (which is intended, since it is not a separate item)
but resets the found loop labels while being visited.

Fixes: #31754
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions