1
Fork 0

Use callback-based interface to load ThinLTO import data into rustc.

This commit is contained in:
Michael Woerister 2018-07-13 12:41:22 +02:00
parent dd3f445ed2
commit e045a6cd8c
4 changed files with 56 additions and 94 deletions

View file

@ -1360,7 +1360,7 @@ fn load_thin_lto_imports(sess: &Session) -> lto::ThinLTOImports {
);
if !path.exists() {
return lto::ThinLTOImports::new_empty();
return lto::ThinLTOImports::new();
}
match lto::ThinLTOImports::load_from_file(&path) {