We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e848d42 commit 6bcf635Copy full SHA for 6bcf635
llvm/include/llvm/Support/Error.h
@@ -1195,7 +1195,7 @@ class FileError final : public ErrorInfo<FileError> {
1195
private:
1196
FileError(const Twine &F, std::unique_ptr<ErrorInfoBase> E) {
1197
assert(E && "Cannot create FileError from Error success value.");
1198
- assert(!F.isEmpty() &&
+ assert(!F.isTriviallyEmpty() &&
1199
"The file name provided to FileError must not be empty.");
1200
FileName = F.str();
1201
Err = std::move(E);
0 commit comments