diff --git a/src/compiler/lowering/SpecializeGenericFunctionsPass.cpp b/src/compiler/lowering/SpecializeGenericFunctionsPass.cpp index e6b98bc8a..38e799a74 100644 --- a/src/compiler/lowering/SpecializeGenericFunctionsPass.cpp +++ b/src/compiler/lowering/SpecializeGenericFunctionsPass.cpp @@ -352,6 +352,7 @@ class SpecializeGenericFunctionsPass : public PassWrappergetResults(), specializedFunc.getFunctionType())) { inferTypesInFunction(function); + inferTypesInFunction(specializedFunc); } specializeCallsInFunction(specializedFunc); called.insert(specializedFunc);