Skip to content

Commit 3d3a3c2

Browse files
committed
[verifier] Do not use llvm::report_fatal_error since it swallows PrettyStackTrace.
I thought this was me being more standard but I keep on hitting this so I am returning back to an assert(0) version of this. This is only enabled if NDEBUG is set, so this is ok.
1 parent 1902ff2 commit 3d3a3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/Verifier/LinearLifetimeCheckerPrivate.h

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

210210
llvm::errs() << "Found ownership error?!\n";
211-
llvm::report_fatal_error("triggering standard assertion failure routine");
211+
assert(0 && "triggering standard assertion failure routine");
212212
}
213213
};
214214

0 commit comments

Comments
 (0)