projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bc54ca
)
gallivm: Remove NULL check of pointer that can't be NULL.
author
Vinson Lee
<vlee@vmware.com>
Sun, 25 Apr 2010 06:31:35 +0000
(23:31 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 25 Apr 2010 06:31:35 +0000
(23:31 -0700)
info cannot be NULL at the call to debug_printf. emit_instruction
dereferences info, so at debug_printf it is either not NULL or the
program has already crashed.
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index df2e24c2c90cbbf806f4523c2f83133f3b9079cc..aed1d583cb25a33b728022a752c8e86f2024f911 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@
-1812,7
+1812,7
@@
lp_build_tgsi_soa(LLVMBuilderRef builder,
const struct tgsi_opcode_info *info = tgsi_get_opcode_info(opcode);
if (!emit_instruction( &bld, &parse.FullToken.FullInstruction, info ))
_debug_printf("warning: failed to translate tgsi opcode %s to LLVM\n",
- info
? info->mnemonic : "<invalid>"
);
+ info
->mnemonic
);
}
break;