Do not clear spv_function_implementations on MSL.

Will fail when recompiles are necessary.
This commit is contained in:
Hans-Kristian Arntzen 2018-05-02 21:37:36 +02:00
parent 9279750a1d
commit 7b95168c3d

View File

@ -364,8 +364,6 @@ string CompilerMSL::compile(MSLConfiguration &msl_cfg, vector<MSLVertexAttr> *p_
// Register the need to output any custom functions. // Register the need to output any custom functions.
void CompilerMSL::preprocess_op_codes() void CompilerMSL::preprocess_op_codes()
{ {
spv_function_implementations.clear();
OpCodePreprocessor preproc(*this); OpCodePreprocessor preproc(*this);
traverse_all_reachable_opcodes(get<SPIRFunction>(entry_point), preproc); traverse_all_reachable_opcodes(get<SPIRFunction>(entry_point), preproc);