[LLVMdev] Casting a Value
Chayan Sarkar
chayan.ju at gmail.com
Mon Jun 21 04:35:57 PDT 2010
Hi,
I have Value V of Type i32*. How can I convert/set it's Type to i32?
Or How can I create another Value of Type i32 and with same name as V.
I have tried
Value *NewV = new Value(Type,scid);
NewV->setName(V->getNameStr());
It causes stack dump. I am not sure as second argument in the Value
constructor as scid (SubClassID). So I have mentioned 0.
Any Idea how to do this?
Regards,
Chayan
More information about the llvm-dev
mailing list