[LLVMdev] Breakage in CVS?
Chris Lattner
sabre at nondot.org
Thu Nov 28 13:29:01 PST 2002
> 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?
-Chris
> for (std::map<Value*, DSNodeHandle>::iterator i = vmap.begin(); i
> != vmap.end(); ++i) {
> if(i->second.getNode() == theNode) {
> if(isa<MallocInst>(i->first)) count++;
> }
> }
> if(count == 1) return true;
> return false;
> }
>
> This code used to work... Has something changed or is our code wrong? I
> rebuilt two days ago...
>
> Dave
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/
More information about the llvm-dev
mailing list