diff options
| author | Philipp Hansch <dev@phansch.net> | 2020-12-19 08:25:42 +0100 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2020-12-19 08:43:45 +0100 |
| commit | dfb4ea588c2af7633b2d01d2dfa3d6ffc7d07ee7 (patch) | |
| tree | 7046d72a153bf187c215836d7a5ba3b90ef9a984 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 896d82f7ff64644656bda7a4ed8bbd55ca3b7619 (diff) | |
| download | rust-dfb4ea588c2af7633b2d01d2dfa3d6ffc7d07ee7.tar.gz rust-dfb4ea588c2af7633b2d01d2dfa3d6ffc7d07ee7.zip | |
Fix blessing of new reference files
Adding of new reference files wasn't handled correctly. It was trying to read a file that didn't exist yet. Instead of unwrapping, we now treat a missing reference file as empty (`Vec::new`). This makes the following conditional work. We then also have to re-read the reference file after it was being copied. This second read is technically the same as in the old shell script, but wasn't really obvious. The shell script did a `-s` test which reads the file.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
