mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
add an assertion requested on llvmdev.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97769 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
18ce64e069
commit
f071d4efeb
@ -368,6 +368,7 @@ void format_object_base::home() {
|
|||||||
/// if no error occurred.
|
/// if no error occurred.
|
||||||
raw_fd_ostream::raw_fd_ostream(const char *Filename, std::string &ErrorInfo,
|
raw_fd_ostream::raw_fd_ostream(const char *Filename, std::string &ErrorInfo,
|
||||||
unsigned Flags) : pos(0) {
|
unsigned Flags) : pos(0) {
|
||||||
|
assert(Filename != 0 && "Filename is null");
|
||||||
// Verify that we don't have both "append" and "excl".
|
// Verify that we don't have both "append" and "excl".
|
||||||
assert((!(Flags & F_Excl) || !(Flags & F_Append)) &&
|
assert((!(Flags & F_Excl) || !(Flags & F_Append)) &&
|
||||||
"Cannot specify both 'excl' and 'append' file creation flags!");
|
"Cannot specify both 'excl' and 'append' file creation flags!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user