From 88f04c29244af23c1cdd472d8d1ae3e5a650494e Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 10 Aug 2022 14:11:27 -0700 Subject: `is` and `as` operator and `Optional`. (#2355) * `is` and `as` operator and `Optional`. * Fix. Co-authored-by: Yong He --- source/slang/slang-emit.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang/slang-emit.cpp') diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 21073f4c8..da8739a49 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -25,6 +25,7 @@ #include "slang-ir-lower-generics.h" #include "slang-ir-lower-tuple-types.h" #include "slang-ir-lower-result-type.h" +#include "slang-ir-lower-optional-type.h" #include "slang-ir-lower-bit-cast.h" #include "slang-ir-lower-reinterpret.h" #include "slang-ir-metadata.h" @@ -387,6 +388,9 @@ Result linkAndOptimizeIR( // will run a DCE pass to clean up after the specialization. // simplifyIR(irModule); + + lowerOptionalType(irModule, sink); + #if 0 dumpIRIfEnabled(codeGenContext, irModule, "AFTER DCE"); #endif -- cgit v1.2.3