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

Vladimir Merzliakov wanderer at rsu.ru
Sat Jul 10 11:03:01 PDT 2004


> 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: Module.patch
Type: application/octet-stream
Size: 345 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040710/78196553/attachment.obj>


More information about the llvm-dev mailing list