From 7b95168c3d8f70d1fabffbd582b483ccadd6a86b Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Wed, 2 May 2018 21:37:36 +0200 Subject: [PATCH] Do not clear spv_function_implementations on MSL. Will fail when recompiles are necessary. --- spirv_msl.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/spirv_msl.cpp b/spirv_msl.cpp index 8ee5f24a..b90fcd47 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -364,8 +364,6 @@ string CompilerMSL::compile(MSLConfiguration &msl_cfg, vector *p_ // Register the need to output any custom functions. void CompilerMSL::preprocess_op_codes() { - spv_function_implementations.clear(); - OpCodePreprocessor preproc(*this); traverse_all_reachable_opcodes(get(entry_point), preproc);