[LLVMdev] Breakage in CVS?

David Crowe dcrowe at tremor.crhc.uiuc.edu
Fri Nov 29 12:24:00 PST 2002


Turns out my CVS build was really old, and just needed to be rebuilt from 
scratch...  I was pretty sure of the non-nullness, and everything seems to 
work now...

Dave

On Thu, 28 Nov 2002, Chris Lattner wrote:

> > > > The following function produces a segv when the begin() is taken from
> > > > vmap, the ScalarMap...
> > > > 	int count = 0;
> > > > 	std::map<Value*, DSNodeHandle>& vmap = theGraph->getScalarMap();
> > >
> > > Are you sure "theGraph" is not null at this point?
> > yes... that call returns sucessfully. the segfault occurs after...
> 
> I don't doubt the call successfully returns.  The call basically does some
> pointer arithmetic, adding a small constant to "theGraph".  When you
> dereference vmap later, you are loading this.  If theGraph is null going
> into the call you won't get a segfault there, you will get it later.  So
> are you _sure_ theGraph is not null?
> 
> -Chris
> 
> 




More information about the llvm-dev mailing list