Add a missing err.emit(); for the "spirv-opt failed" error. (#412)

This commit is contained in:
Eduard-Mihai Burtescu 2021-02-10 15:42:43 +02:00 committed by GitHub
parent b60e258686
commit 2f9d4d8e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,7 @@ fn do_spirv_opt(sess: &Session, spv_binary: Vec<u32>, filename: &Path) -> Vec<u3
let mut err = sess.struct_warn(&e.to_string());
err.note("spirv-opt failed, leaving as unoptimized");
err.note(&format!("module {:?}", filename));
err.emit();
spv_binary
}
}