[libc-commits] [libc] [llvm] [libc] Fix gcc build for popen (PR #234041)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Wed Oct 21 00:00:19 PDT 2026
================
@@ -72,7 +73,8 @@ class LinuxFile : public File {
auto *file = new (ac) FileT(fd, buffer, DEFAULT_BUFFER_SIZE, _IOFBF,
/*owned=*/true, mode);
if (!ac) {
- delete buffer;
+ // Use free instead of delete[] to avoid a GCC 12 ICE in the waccess pass.
----------------
labath wrote:
If everything works out, we'll have unique_ptr for this soon.
https://github.com/llvm/llvm-project/pull/234041
More information about the libc-commits
mailing list