Skip to content

Commit c556b00

Browse files
committed
Replace assert() with llvm_unreachable()
1 parent 150f252 commit c556b00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SIL/Verifier/LinearLifetimeCheckerPrivate.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ class LLVM_LIBRARY_VISIBILITY LinearLifetimeChecker::ErrorBuilder {
208208
}
209209

210210
llvm::errs() << "Found ownership error?!\n";
211-
assert(0 && "triggering standard assertion failure routine");
212-
return true;
211+
llvm_unreachable("triggering standard assertion failure routine");
213212
}
214213
};
215214

0 commit comments

Comments
 (0)