about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-30 02:25:47 -0700
committerbors <bors@rust-lang.org>2013-08-30 02:25:47 -0700
commitf10e50a4beecbf6afa51870190458d34f216fe54 (patch)
tree5e35bd2e6945ef6e97d6aca5ef18bbf9f507aab9 /src/rustllvm/RustWrapper.cpp
parentf94844c55893de9489cf64c4a8b9d66c962a560b (diff)
parent2c1d6568f253a2310a0b4a06064b2cf0271aa6be (diff)
downloadrust-f10e50a4beecbf6afa51870190458d34f216fe54.tar.gz
rust-f10e50a4beecbf6afa51870190458d34f216fe54.zip
auto merge of #8843 : alexcrichton/rust/fix-bug, r=huonw
Whenever a generic function was encountered, only the top-level items were
recursed upon, even though the function could contain items inside blocks or
nested inside of other expressions. This fixes the existing code from traversing
just the top level items to using a Visitor to deeply recurse and find any items
which need to be translated.

This was uncovered when building code with --lib, because the encode_symbol
function would panic once it found that an item hadn't been translated.

Closes #8134
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions