From 0c87001d7fb9dabaa17f9784e99d7438592d2373 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 6 Jan 2020 15:36:11 -0500 Subject: Fix scoping issue around use of IRTypeSet (#1160) * WIP use IRTypeSet in CPPSourceEmitter - doesn't work because of a cloning issue, causing a crash on exit. * Fix destruction of module issue for IRTypeSet usage in CPPEmitter. * Fix out definition emitting ordering that was removed. * Disable cuda output test. --- source/slang/slang-emit-cpp.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source/slang/slang-emit-cpp.h') diff --git a/source/slang/slang-emit-cpp.h b/source/slang/slang-emit-cpp.h index 45a9ee35a..784696b08 100644 --- a/source/slang/slang-emit-cpp.h +++ b/source/slang/slang-emit-cpp.h @@ -101,7 +101,7 @@ protected: StringSlicePool::Handle _calcFuncName(const HLSLIntrinsic* specOp); UnownedStringSlice _getTypeName(IRType* type); - StringSlicePool::Handle _calcTypeName(IRType* type); + //StringSlicePool::Handle _calcTypeName(IRType* type); SlangResult _calcTypeName(IRType* type, CodeGenTarget target, StringBuilder& out); @@ -122,9 +122,8 @@ protected: IRTypeSet m_typeSet; RefPtr m_opLookup; HLSLIntrinsicSet m_intrinsicSet; - - Dictionary m_typeEmittedMap; - Dictionary m_intrinsicEmittedMap; + + HashSet m_intrinsicEmitted; StringSlicePool m_slicePool; -- cgit v1.2.3