about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2020-08-07 17:51:40 +0100
committerDavid Wood <david@davidtw.co>2020-08-07 18:41:43 +0100
commit4ccaf6f38ce5b617635ec5dc738275c681090eff (patch)
tree1ec0d255decac72e31311093100ea0e54b752ff1 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent5827b5a4bd0bb35251da12fc972aa1d5a210116f (diff)
downloadrust-4ccaf6f38ce5b617635ec5dc738275c681090eff.tar.gz
rust-4ccaf6f38ce5b617635ec5dc738275c681090eff.zip
instance: avoid unnecessary `mk_` calls
This commit avoids unnecessary calls to `mk_closure` and `mk_generator`
by checking if the polymorphized substs match the original substs.

Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions