mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 20:53:29 +08:00
[CIR][NFC] Fix warning in MemOrder lowering (#154609)
This fixes a warning about having a default case in a fully covered enum switch statement.
This commit is contained in:
@@ -1181,9 +1181,8 @@ getLLVMMemOrder(std::optional<cir::MemOrder> memorder) {
|
||||
return mlir::LLVM::AtomicOrdering::acq_rel;
|
||||
case cir::MemOrder::SequentiallyConsistent:
|
||||
return mlir::LLVM::AtomicOrdering::seq_cst;
|
||||
default:
|
||||
llvm_unreachable("unknown memory order");
|
||||
}
|
||||
llvm_unreachable("unknown memory order");
|
||||
}
|
||||
|
||||
mlir::LogicalResult CIRToLLVMLoadOpLowering::matchAndRewrite(
|
||||
|
||||
Reference in New Issue
Block a user