* g++.old-deja/g++.law/code-gen5.C: Don't send raw pointers to assert.

From-SVN: r43198
This commit is contained in:
Richard Henderson 2001-06-11 09:34:29 -07:00 committed by Richard Henderson
parent ccb83cbced
commit d4a6cf3861
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2001-06-11 Richard Henderson <rth@redhat.com>
* g++.old-deja/g++.law/code-gen5.C: Don't send raw pointers to assert.
2001-06-11 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.c-torture/compile/20010611-1.c: New test.

View File

@ -142,7 +142,7 @@ operator=( const Vector &A )
double Vector::
operator()( int row ) const
{
assert( r );
assert(r != 0);
return *r->vec;
}
@ -150,7 +150,7 @@ operator()( int row ) const
VecElem Vector::
operator()( int r )
{
assert(r);
assert(r != 0);
return VecElem( *this, r );
}
@ -159,7 +159,7 @@ operator()( int r )
double Vector::
assign( int rownum, double d )
{
assert(r);
assert(r != 0);
if( rownum > row() || rownum <= 0 ) {
std::cerr << "Warning: trying to assign out of bounds" << std::endl;
@ -246,7 +246,7 @@ VecElem( const VecElem &elem )
VecElem::
operator double()
{
assert( v.r->vec );
assert( v.r->vec != 0 );
return *v.r->vec;
};