diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2017-08-07 17:41:02 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2017-08-11 12:11:38 +0200 |
| commit | 55e04d9c17c655bdb6d1e6f7256d398482bf1599 (patch) | |
| tree | 32e222092cb49e3bff246e003dcf8652f26a2a30 /src/rustllvm/RustWrapper.cpp | |
| parent | 454533f5d93421eb2532fc6ee0fcd3007142cff6 (diff) | |
| download | rust-55e04d9c17c655bdb6d1e6f7256d398482bf1599.tar.gz rust-55e04d9c17c655bdb6d1e6f7256d398482bf1599.zip | |
Make Definitions::find_node_for_hir_id() a linear search instead of a binary one.
Unfortunately, the NodeId->HirId array is not sorted. Since this search is only done right before calling bug!(), let's not waste time allocating a faster lookup.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
