diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-24 18:09:40 -0700 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2020-06-24 20:25:49 -0700 |
| commit | ffa9a3575ff888dc494ba4878f52441c64a9e08c (patch) | |
| tree | 5445e7666f076ac6f61a6be8b045a09d7302085c /source/slang/slang-emit.cpp | |
| parent | 161c525c56dfd4feb3db528f09169412d0b7ed55 (diff) | |
Fix `lowerFuncType` and small bug fixes.
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index f2552f95d..59b059e91 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -280,7 +280,8 @@ Result linkAndOptimizeIR( // For targets that supports dynamic dispatch, we need to lower the // generics / interface types to ordinary functions and types using // function pointers. - lowerGenerics(irModule); + if (compileRequest->allowDynamicCode) + lowerGenerics(irModule); break; default: break; |
