radv: Squelch possibly-undefined warning
The same condition is used in the def as in the use, but gcc wasn't figuring it out. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
This commit is contained in:
@@ -4188,7 +4188,7 @@ LLVMModuleRef ac_translate_nir_to_llvm(struct ac_llvm_compiler *ac_llvm,
|
||||
|
||||
ac_setup_rings(&ctx);
|
||||
|
||||
LLVMBasicBlockRef merge_block;
|
||||
LLVMBasicBlockRef merge_block = NULL;
|
||||
if (shader_count >= 2 || is_ngg) {
|
||||
LLVMValueRef fn = LLVMGetBasicBlockParent(LLVMGetInsertBlock(ctx.ac.builder));
|
||||
LLVMBasicBlockRef then_block = LLVMAppendBasicBlockInContext(ctx.ac.context, fn, "");
|
||||
|
||||
Reference in New Issue
Block a user