summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-06-24 18:09:40 -0700
committerYong He <yonghe@outlook.com>2020-06-24 20:25:49 -0700
commitffa9a3575ff888dc494ba4878f52441c64a9e08c (patch)
tree5445e7666f076ac6f61a6be8b045a09d7302085c /source/slang/slang-emit.cpp
parent161c525c56dfd4feb3db528f09169412d0b7ed55 (diff)
Fix `lowerFuncType` and small bug fixes.
Diffstat (limited to 'source/slang/slang-emit.cpp')
-rw-r--r--source/slang/slang-emit.cpp3
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;