Skip to content

Commit 7c34295

Browse files
committed
Add some tracing to debug DiagnoseStaticExclusivity.
1 parent 5886bc1 commit 7c34295

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/Mandatory/DiagnoseStaticExclusivity.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ static void diagnoseExclusivityViolation(const AccessedStorage &Storage,
365365
const BeginAccessInst *NewAccess,
366366
ASTContext &Ctx) {
367367

368+
DEBUG(llvm::dbgs() << "Conflict on " << *PriorAccess
369+
<< "\n vs " << *NewAccess
370+
<< "\n in function " << *PriorAccess->getFunction());
371+
368372
// Can't have a conflict if both accesses are reads.
369373
assert(!(PriorAccess->getAccessKind() == SILAccessKind::Read &&
370374
NewAccess->getAccessKind() == SILAccessKind::Read));

0 commit comments

Comments
 (0)