https://github.com/arsenm created 
https://github.com/llvm/llvm-project/pull/209707

The comment says it's needed for getenv, but this file does
not directly use getenv; it uses sys::Process::GetEnv.

>From 9e1b9db71f2fb0d3a8a65b5c215165deb462f164 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <[email protected]>
Date: Wed, 15 Jul 2026 11:29:14 +0200
Subject: [PATCH] clang: Remove unnecessary cstdlib include

The comment says it's needed for getenv, but this file does
not directly use getenv; it uses sys::Process::GetEnv.
---
 clang/lib/Driver/Driver.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index e606cdc4c1cf8..a7fcc30291e09 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -110,7 +110,6 @@
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/TargetParser/Host.h"
 #include "llvm/TargetParser/RISCVISAInfo.h"
-#include <cstdlib> // ::getenv
 #include <map>
 #include <memory>
 #include <optional>

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to