diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-05 00:49:08 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-05 00:49:08 +0000 |
| commit | 6783832ec27c5dd2b79545d92e843f1aa283745f (patch) | |
| tree | 2d2d88be671158ba83dda17d445133d26f1e0730 /llvm/lib/Support/raw_ostream.cpp | |
| parent | 543ce1f64a178a1831657aee35279beb6c95ca0f (diff) | |
| download | llvm-6783832ec27c5dd2b79545d92e843f1aa283745f.zip llvm-6783832ec27c5dd2b79545d92e843f1aa283745f.tar.gz llvm-6783832ec27c5dd2b79545d92e843f1aa283745f.tar.bz2 | |
add an assertion requested on llvmdev.
llvm-svn: 97769
Diffstat (limited to 'llvm/lib/Support/raw_ostream.cpp')
| -rw-r--r-- | llvm/lib/Support/raw_ostream.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp index 25c3fbd..071c924 100644 --- a/llvm/lib/Support/raw_ostream.cpp +++ b/llvm/lib/Support/raw_ostream.cpp @@ -368,6 +368,7 @@ void format_object_base::home() { /// if no error occurred. raw_fd_ostream::raw_fd_ostream(const char *Filename, std::string &ErrorInfo, unsigned Flags) : pos(0) { + assert(Filename != 0 && "Filename is null"); // Verify that we don't have both "append" and "excl". assert((!(Flags & F_Excl) || !(Flags & F_Append)) && "Cannot specify both 'excl' and 'append' file creation flags!"); |
