[llvm-commits] [llvm] r97769 - /llvm/trunk/lib/Support/raw_ostream.cpp
Chris Lattner
sabre at nondot.org
Thu Mar 4 16:49:08 PST 2010
Author: lattner
Date: Thu Mar 4 18:49:08 2010
New Revision: 97769
URL: http://llvm.org/viewvc/llvm-project?rev=97769&view=rev
Log:
add an assertion requested on llvmdev.
Modified:
llvm/trunk/lib/Support/raw_ostream.cpp
Modified: llvm/trunk/lib/Support/raw_ostream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/raw_ostream.cpp?rev=97769&r1=97768&r2=97769&view=diff
==============================================================================
--- llvm/trunk/lib/Support/raw_ostream.cpp (original)
+++ llvm/trunk/lib/Support/raw_ostream.cpp Thu Mar 4 18:49:08 2010
@@ -368,6 +368,7 @@
/// 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!");
More information about the llvm-commits
mailing list