<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/154714>154714</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[llvm][clang] undeclared identifier 'malloc' and 'free' in runOnNewStack
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kykrueger
</td>
</tr>
</table>
<pre>
While building main with vcpkg I've come across a bug introduced with https://github.com/llvm/llvm-project/pull/136046
```
/Users/kykrueger/repos/vcpkg/buildtrees/llvm/src/e0a7de5d9d-142095e5f5.clean/llvm/lib/Support/ProgramStack.cpp:114:17: error: use of undeclared identifier 'malloc'
114 | void *Stack = malloc(StackSize);
| ^
/Users/kykrueger/repos/vcpkg/buildtrees/llvm/src/e0a7de5d9d-142095e5f5.clean/llvm/lib/Support/ProgramStack.cpp:119:3: error: use of undeclared identifier 'free'
119 | free(Stack);
```
I'm looking into why malloc and free are not being found.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMU8GOozgQ_ZriUurIFBjCgQO9WaS97K7UWu3Z2AXxxsHIxmn1fv0I0t2ZuU3fJrICKlWV33u8p2K008zcgnwGecpUWs8-tJe3S0g8ccgGb97af8_WMQ7JOmPnCa_Kzvhq1zPe9HKZ8A-g-sao_ZVR6eBjRIVDmtDOa_AmaTb39vO6LhGKDqgH6ie7ntNw0P4K1Dt3-3g8LcH_x3oF6pfkHFCfF5UoKxDddirxfsS255_IIQL1n4iB-sCL32o7OqB-B74G5vi4KAYN1LNQtWFpGvOUlyQayXKUB-1Yzd9hsgNQ_5KWxYcN1N_BT0FdX1alLwe9LFB0eV5u_zUUHXIIPmwvKTL6EdNsWDsV2KA1PK92tBwQqL4q57wGqkF0iHleItS_IeLNW4NA3X4BQnHCj87jXnqx_zNQA8XzPrj9tkGQv_9akjRQdMWXFBkD80OPZqd1r92Zf7L-wQSi2wx4Ref9ZbOnnVePr-e3d9lQzWbfgiowzn7Fgbe20afZHDLTFqYpGpVxm9dS1lVTiWN2boU2Q1GzNKIRBY1khNJ0LKtxbKhoSGe2JUFSHCkXTVmVx4NuKk2jLsZmHIZBSSgFX5V1h020gw9TZmNM3OayrPMyc2pgF_fgEWmn5gmItgyGdk_BkKYIpXA2rvGxYrWr29O6fwl5Avl8n5Wnn3DarsVDaLQzhjT_Nf_Jr7vAWQqu_XJKd1qbkd6Z3Vr6FgAA__-K718p">