Skip to content

ac/llvm: Fix nonportable sizeof.

Vinson Lee requested to merge vlee/mesa:fix-cid-1466674 into master

Fix defect reported by Coverity.

Sizeof not portable (SIZEOF_MISMATCH) suspicious_sizeof: Passing argument vec_size * 8UL /* sizeof (LLVMValueRef *) */ to function __builtin_alloca and then casting the return value to LLVMValueRef * is suspicious. In this particular case sizeof (LLVMValueRef *) happens to be equal to sizeof (LLVMValueRef), but this is not a portable assumption.

Fixes: ca74603b ("ac/llvm: add better code for isign") Signed-off-by: Vinson Lee vlee@freedesktop.org

cc: @mareko

Merge request reports