Module: Mesa
Branch: master
Commit: 8227b08c08182fe7b75e2ec3b8b7531cfebaef59
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8227b08c08182fe7b75e2ec3b8b7531cfebaef59

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Sep 30 13:33:58 2020 +0200

ac/llvm: fix invalid use of unreachable in ac_build_atomic_rmw()

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6936>

---

 src/amd/llvm/ac_llvm_helper.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/llvm/ac_llvm_helper.cpp b/src/amd/llvm/ac_llvm_helper.cpp
index f9b70e3f38c..5f04813704f 100644
--- a/src/amd/llvm/ac_llvm_helper.cpp
+++ b/src/amd/llvm/ac_llvm_helper.cpp
@@ -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);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to