This commit is contained in:
bjorn3 2018-08-07 16:43:09 +02:00
parent e0b1176ae5
commit 5c601f7316

View File

@ -156,9 +156,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
fn init(&self, sess: &Session) {
for cty in sess.opts.crate_types.iter() {
match *cty {
CrateType::Rlib
| CrateType::Dylib
| CrateType::Executable => {}
CrateType::Rlib | CrateType::Dylib | CrateType::Executable => {}
_ => {
sess.parse_sess.span_diagnostic.warn(&format!(
"LLVM unsupported, so output type {} is not supported",