[llvm] Workaround -Wglobal-constructor warning. (PR #94699)
Eric Schweitz via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 10:33:58 PDT 2024
================
@@ -79,7 +82,7 @@ bool CodeGenCoverage::parse(MemoryBuffer &Buffer, StringRef BackendName) {
bool CodeGenCoverage::emit(StringRef CoveragePrefix,
StringRef BackendName) const {
if (!CoveragePrefix.empty() && !RuleCoverage.empty()) {
- sys::SmartScopedLock<true> Lock(OutputMutex);
+ sys::SmartScopedLock<true> Lock(OutputMutex());
----------------
schweitzpgi wrote:
Since the variable is static, this is the only use.
https://github.com/llvm/llvm-project/pull/94699
More information about the llvm-commits
mailing list