Selaa lähdekoodia

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

Adam Yang 4 vuotta sitten
vanhempi
commit
43d430650f
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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;