diff options
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 0b88bd057..4412eccb8 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -537,17 +537,12 @@ Result linkAndOptimizeIR( } else { -#if 0 - // On CPU/CUDA targets, we simply elminate any empty types. - // TODO: disable for now, since the CPU compute shader - // trampoline is still hard coded to assume there are - // entrypoint and global parameters. renable when - // we fix that logic. + // On CPU/CUDA targets, we simply elminate any empty types if + // they are not part of public interface. legalizeEmptyTypes( irModule, sink); eliminateDeadCode(irModule); -#endif } // Once specialization and type legalization have been performed, |
