Browse Source

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

Adam Yang 4 years ago
parent
commit
43d430650f
1 changed files with 2 additions and 0 deletions
  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;