diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-07-29 16:49:26 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-08-02 05:31:25 -0400 |
| commit | c56eb4b7f5206f157aa200e8424f697791990d27 (patch) | |
| tree | 0969dd346e106fc0ac6d0807a886f44133c297ed /src/rustllvm/RustWrapper.cpp | |
| parent | 9294f8ed0a053af18be8247ef589bc16775bd038 (diff) | |
| download | rust-c56eb4b7f5206f157aa200e8424f697791990d27.tar.gz rust-c56eb4b7f5206f157aa200e8424f697791990d27.zip | |
remap Hir(InlinedDefId) to MetaData(OriginalDefId)
The way we do HIR inlining introduces reads of the "Hir" into the graph, but this Hir in fact belongs to other crates, so when we try to load later, we ICE because the Hir nodes in question don't belond to the crate (and we haven't done inlining yet). This pass rewrites those HIR nodes to the metadata from which the inlined HIR was loaded.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
