llvmpipe: store zero into all alloca'd values

Fixes slowdown in isosurf with earlier versions of llvm.
This commit is contained in:
Keith Whitwell 2010-10-07 19:49:20 +01:00
parent 40d7be5261
commit 6da29f3611
1 changed files with 1 additions and 0 deletions

View File

@ -830,6 +830,7 @@ lp_build_alloca(LLVMBuilderRef builder,
}
res = LLVMBuildAlloca(first_builder, type, name);
LLVMBuildStore(builder, LLVMConstNull(type), res);
LLVMDisposeBuilder(first_builder);