[PATCH] D21471: [MCContext] Don't use getenv inside class constructor

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 17 09:29:25 PDT 2016


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





More information about the llvm-commits mailing list