ac/llvm: fix invalid use of unreachable in ac_build_atomic_rmw()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6936>
This commit is contained in:
committed by
Marge Bot
parent
892e74d2f7
commit
8227b08c08
@@ -310,7 +310,7 @@ LLVMValueRef ac_build_atomic_rmw(struct ac_llvm_context *ctx, LLVMAtomicRMWBinOp
|
||||
binop = llvm::AtomicRMWInst::UMin;
|
||||
break;
|
||||
default:
|
||||
unreachable(!"invalid LLVMAtomicRMWBinOp");
|
||||
unreachable("invalid LLVMAtomicRMWBinOp");
|
||||
break;
|
||||
}
|
||||
unsigned SSID = llvm::unwrap(ctx->context)->getOrInsertSyncScopeID(sync_scope);
|
||||
|
||||
Reference in New Issue
Block a user