Skip to content

Commit e34dc59

Browse files
committed
[region-isolation] When asserting about a bad inst, print the inst out to ease debugging.
1 parent dd7f5ec commit e34dc59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SILOptimizer/Analysis/RegionAnalysis.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,7 @@ class PartitionOpTranslator {
21092109
}
21102110

21112111
case TranslationSemantics::Asserting:
2112+
llvm::errs() << "BannedInst: " << *inst;
21122113
llvm::report_fatal_error(
21132114
"transfer-non-sendable: Found banned instruction?!");
21142115
return;
@@ -2119,6 +2120,7 @@ class PartitionOpTranslator {
21192120
return ::isNonSendableType(value->getType(), inst->getFunction());
21202121
}))
21212122
return;
2123+
llvm::errs() << "BadInst: " << *inst;
21222124
llvm::report_fatal_error(
21232125
"transfer-non-sendable: Found instruction that is not allowed to "
21242126
"have non-Sendable parameters with such parameters?!");

0 commit comments

Comments
 (0)