efriedma added a comment. Using std::call_once, instead of a separate flag+mutex, would be a little more readable and efficient. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73587/new/ https://reviews.llvm.org/D73587