Browse Source

Added the missing thread local IMalloc for possible memory allocation in some implementations (#3373)

Adam Yang 4 năm trước cách đây
mục cha
commit
43d430650f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tools/clang/tools/dxcompiler/dxcpdbutils.cpp

+ 2 - 0
tools/clang/tools/dxcompiler/dxcpdbutils.cpp

@@ -821,6 +821,8 @@ public:
     if (!m_HasVersionInfo)
       return E_FAIL;
 
+    DxcThreadMalloc TM(m_pMalloc);
+
     CComPtr<DxcPdbVersionInfo> result = CreateOnMalloc<DxcPdbVersionInfo>(m_pMalloc);
     if (result == nullptr) {
       return E_OUTOFMEMORY;