[LLVMdev] Bug In Module::getConstantPointerRef ?
Chris Lattner
sabre at nondot.org
Mon Feb 2 16:58:02 PST 2004
On Mon, 2 Feb 2004, Reid Spencer wrote:
> > _Link_type __x = _M_root(); // Current node.
>
> The _M_root() call is de-referencing the _M_header field.
>
> This could, ostensibly, be a bug in std::_Rb_tree template but it could
> also be a usage problem.
>
> Note that the GVRefMap (in Module.cpp) has no constructor and just uses
> the default. Presumably the default constructor of the std::map (member
> Map) is also called but that constructor doesn't do much (i.e. provide a
> value for _M_header).
>
> One other note: this used to work a couple weeks ago. I just did a cvs
> update and rebuilt LLVM. My code hasn't changed.
Nothing has really changed in this part of the compiler for a long time,
and I don't think we are abusing std::map's here. Is it possible that
part of your tree is out of sync with the rest of it or something? Maybe
make clean would help?
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/
More information about the llvm-dev
mailing list