Skip to content

Commit 79cd9ab

Browse files
committed
Skip the error message in case of colorless BB.
1 parent e99ccaa commit 79cd9ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ class RuntimeCallInserter {
675675
// funclet opbundles are only valid in monochromatic BBs.
676676
// Note that unreachable BBs are seen as colorless by colorEHFunclets()
677677
// and will be DCE'ed later.
678+
if (Colors.empty())
679+
continue;
678680
if (Colors.size() != 1) {
679681
OwnerFn->getContext().emitError(
680682
"Instruction's BasicBlock is not monochromatic");

0 commit comments

Comments
 (0)