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 a9f131f1ef6..a7cf2d56a14 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.empty() && + assert(!F.isEmpty() && "The file name provided to FileError must not be empty."); FileName = F.str(); Err = std::move(E); |