PR: 225942 Submitted by: Shane Ambler <FreeBSD@ShaneWare.Biz> (maintainer) Relnotes: https://github.com/imageworks/OpenShadingLanguage/releases
12 lines
545 B
C++
12 lines
545 B
C++
--- src/liboslexec/llvm_instance.cpp.orig 2016-07-02 00:07:46 UTC
|
|
+++ src/liboslexec/llvm_instance.cpp
|
|
@@ -1040,7 +1040,7 @@ BackendLLVM::run ()
|
|
// Generate the LLVM IR for each layer. Skip unused layers.
|
|
m_llvm_local_mem = 0;
|
|
llvm::Function* init_func = build_llvm_init ();
|
|
- std::vector<llvm::Function*> funcs (nlayers, NULL);
|
|
+ std::vector<llvm::Function*> funcs (nlayers, (llvm::Function*)NULL);
|
|
for (int layer = 0; layer < nlayers; ++layer) {
|
|
set_inst (layer);
|
|
if (m_layer_remap[layer] != -1) {
|