diff options
| -rw-r--r-- | llvm/include/llvm/Support/Error.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Error.h b/llvm/include/llvm/Support/Error.h index a7cf2d56a14..23a48ed03e4 100644 --- a/llvm/include/llvm/Support/Error.h +++ b/llvm/include/llvm/Support/Error.h @@ -1195,7 +1195,7 @@ public: private: FileError(const Twine &F, std::unique_ptr<ErrorInfoBase> E) { assert(E && "Cannot create FileError from Error success value."); - assert(!F.isEmpty() && + assert(!F.isTriviallyEmpty() && "The file name provided to FileError must not be empty."); FileName = F.str(); Err = std::move(E); |

