Skip to content

Commit 14acaf1

Browse files
committed
ignore target features for wasm32 and loongarch
1 parent 9f3d4c6 commit 14acaf1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_codegen_ssa/src/mir/naked_asm.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,16 @@ fn enable_disable_target_features<'tcx>(
285285
// LLVM does not appear to accept any directive to enable target features
286286
//
287287
// https://github.com/llvm/llvm-project/blob/74306afe87b85cb9b5734044eb6c74b8290098b3/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp#L909
288-
return None;
288+
289+
/* fallthrough */
289290
}
290291

291292
Architecture::LoongArch64 => {
292293
// LLVM does not appear to accept any directive to enable target features
293294
//
294295
// https://github.com/llvm/llvm-project/blob/74306afe87b85cb9b5734044eb6c74b8290098b3/llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp#L1918
296+
297+
/* fallthrough */
295298
}
296299

297300
// FIXME: support naked_asm! on more architectures

0 commit comments

Comments
 (0)