2
0
Эх сурвалжийг харах

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

Adam Yang 4 жил өмнө
parent
commit
43d430650f

+ 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;