[LLVMdev] Re: [llvm-commits] CAUTION: Type != Value

Reid Spencer reid at x10sys.com
Sat Jul 10 11:41:02 PDT 2004


Vladimir,

I thought Chris had already made that patch but apparently not. Anyway,
I've applied it. Thanks very much for noticing this and sorry for the
grief it caused you.

Patch is here:

http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040705/015881.html

Reid.

On Sat, 2004-07-10 at 08:52, Vladimir Merzliakov wrote:
> > As you noted, the cast to Value* from (I presume) Type* is now invalid
> > as there is no inheritance relationship. You can give a type a name by
> > converting:
> > 
> > Ty->setName(Name, &ST)
> > 
> > to:
> > 
> > ST.insert(Name, Ty)
> > 
> > Hope that helps.
> This is resolve problem for me.
> 
> Is attached patch ok for llvm/lib/VMCore/Module.cpp ?
> 
> Vladimir
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040710/94b609ca/attachment.sig>


More information about the llvm-dev mailing list