projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18ce64e
)
add an assertion requested on llvmdev.
author
Chris Lattner
<sabre@nondot.org>
Fri, 5 Mar 2010 00:49:08 +0000
(
00:49
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 5 Mar 2010 00:49:08 +0000
(
00:49
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97769
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/raw_ostream.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/raw_ostream.cpp
b/lib/Support/raw_ostream.cpp
index 25c3fbdef32a1eb95034517ecaecd19c1de8f759..071c924d91952f1a50d74025dc187d5cc58f82ec 100644
(file)
--- a/
lib/Support/raw_ostream.cpp
+++ b/
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!");