rnk added a comment. Hopefully programs don't start threads during static initialization, so the getenv call isn't racy with setenv. OTOH, programs that use setenv and threads are already busted, and we can't really help them. Repository: rL LLVM http://reviews.llvm.org/D21471