search for: removedeadusersofconst

Displaying 3 results from an estimated 3 matches for "removedeadusersofconst".

2011 Oct 26
0
[LLVMdev] Use still stuck around after Def is destroyed:
...#39; runOnModule() method is done. I'm not > sure what I'm doing wrong, this seems like a legitimate actions. I > also cant come up with another way to do this. > Are you saying that a dead ConstantExpr that uses the Global is hanging around when you try to delete it? If so, use removeDeadUsersOfConstant() on the Global before you try to remove it. If the use is not dead, then you can't remove the GlobalVar. -Tanya > Any advice? > Thank you > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.e...
2011 Oct 26
3
[LLVMdev] Use still stuck around after Def is destroyed:
I made a GlobalVariable that is of type ConstantArray. For one of it's elements I assigned it the ConstantExpr::getBitCast of another GlobalVariable(the "shadow pointer" mentioned). This gives me: While deleting: i32 (i32)** %Shadow Variable for ptr1 Use still stuck around after Def is destroyed:i8* bitcast (i32 (i32)** @"Shadow Variable for ptr1" to i8*)
2011 Oct 27
1
[LLVMdev] Use still stuck around after Def is destroyed:
...) method is done. I'm not > sure what I'm doing wrong, this seems like a legitimate actions. I > also cant come up with another way to do this. > > > Are you saying that a dead ConstantExpr that uses the Global is hanging > around when you try to delete it? > If so, use removeDeadUsersOfConstant() on the Global before you try to > remove it. > If the use is not dead, then you can't remove the GlobalVar. > -Tanya > > Any advice? > Thank you > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu         http...