From ffa9a3575ff888dc494ba4878f52441c64a9e08c Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 24 Jun 2020 18:09:40 -0700 Subject: Fix `lowerFuncType` and small bug fixes. --- source/slang/slang-emit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-emit.cpp') 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; -- cgit v1.2.3