diff options
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/lib/Rewrite/RewriteInstance.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp index ea2cee1b01b0..b81486200ad4 100644 --- a/bolt/lib/Rewrite/RewriteInstance.cpp +++ b/bolt/lib/Rewrite/RewriteInstance.cpp @@ -2950,8 +2950,10 @@ void RewriteInstance::buildFunctionsCFG() { if (!BF.buildCFG(AllocId)) return; - if (opts::PrintAll) + if (opts::PrintAll) { + auto L = BC->scopeLock(); BF.print(outs(), "while building cfg", true); + } }; ParallelUtilities::PredicateTy SkipPredicate = [&](const BinaryFunction &BF) { |