Issue 154714
Summary [llvm][clang] undeclared identifier 'malloc' and 'free' in runOnNewStack
Labels clang
Assignees
Reporter kykrueger
    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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to