about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-08-28 23:28:06 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-08-29 18:51:29 -0700
commit2c1d6568f253a2310a0b4a06064b2cf0271aa6be (patch)
tree1ba72b18a36dc2ae65268bd4abb6642c7726e110 /src/rustllvm/RustWrapper.cpp
parent89d04009c160b7a88b03f42c633220457bd72a09 (diff)
downloadrust-2c1d6568f253a2310a0b4a06064b2cf0271aa6be.tar.gz
rust-2c1d6568f253a2310a0b4a06064b2cf0271aa6be.zip
Fix a bug with statics inside blocks in generic fns
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