about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-09-02 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-09-02 00:00:00 +0000
commit6c51ec96bb5b6679645be1651d4ff1d079412af6 (patch)
treef04fe743f48b8cec385963f9ee15e7ecdab2634c /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentda897dfb6daa268a965d2d73620316ba56020a19 (diff)
downloadrust-6c51ec96bb5b6679645be1651d4ff1d079412af6.tar.gz
rust-6c51ec96bb5b6679645be1651d4ff1d079412af6.zip
inliner: Avoid query cycles when optimizing generators
The HIR Id trick is insufficient to prevent query cycles when optimizing
generators, since merely requesting a layout of a generator also
computes its `optimized_mir`.

Make no attempts to inline functions into generators within the same
crate to avoid query cycles.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions