about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2018-08-26 01:53:48 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2018-08-26 18:48:41 +0300
commit5415bb6e8f689393b2f87dc0875bb4048f5f3067 (patch)
treea7c9e88589e90ae7f40153a38c528c728cb99336 /src/rustllvm/PassWrapper.cpp
parentcaed80ba4ba8d9f4d3fa8aa9af6c4092d779cd9d (diff)
downloadrust-5415bb6e8f689393b2f87dc0875bb4048f5f3067.tar.gz
rust-5415bb6e8f689393b2f87dc0875bb4048f5f3067.zip
create a valid DefIdTable for proc macro crates
At least the incremental compilation code, and a few other places in the
compiler, require the CrateMetadata for a loaded target crate to contain a
valid DefIdTable for the DefIds in the target.

Previously, the CrateMetadata for a proc macro contained the crate's
"host" DefIdTable, which is of course incompatible with the "target"
DefIdTable, causing ICEs. This creates a DefIdTable that properly refers
to the "proc macro" DefIds.

Fixes #49482.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions