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

Vladimir Merzliakov
Sat, 10 Jul 2004 11:03:01 -0000

> 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>