mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[BOLT] Fix data race in shortenInstructions
Address ThreadSanitizer warning Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D121338
This commit is contained in:
@@ -1015,6 +1015,7 @@ uint64_t ShortenInstructions::shortenInstructions(BinaryFunction &Function) {
|
||||
continue;
|
||||
|
||||
if (opts::Verbosity > 2) {
|
||||
BC.scopeLock();
|
||||
outs() << "BOLT-INFO: shortening:\nBOLT-INFO: ";
|
||||
BC.printInstruction(outs(), OriginalInst, 0, &Function);
|
||||
outs() << "BOLT-INFO: to:";
|
||||
|
||||
Reference in New Issue
Block a user