Displaying 2 results from an estimated 2 matches for "getphiassign".
Did you mean:
getphiassigns
2011 Jan 31
2
[LLVMdev] Segmentation fault on using get parent of a PHINode
I am getting a segmentation fault as soon as I touch the Basic block
*b value defined as :
std::string getPHIAssigns(const PHINode *PH)
{ const BasicBlock *b = PH->getParent();
errs() << b->size();
where as getPHIAssigns is being called from
for (BasicBlock::iterator ins=b->begin(), e3=b->end();
ins!=e3; ++ins, ++l) // get instructions
{ if (const PHINo...
2011 Feb 05
0
[LLVMdev] Segmentation fault on using get parent of a PHINode
...h your code. I suggest
that (1) you build LLVM with assertions enabled, (2) you run the verifier on
your bitcode, and (3) run your program under valgrind.
Ciao, Duncan.
> I am getting a segmentation fault as soon as I touch the Basic block
> *b value defined as :
>
> std::string getPHIAssigns(const PHINode *PH)
> { const BasicBlock *b = PH->getParent();
> errs()<< b->size();
>
>
> where as getPHIAssigns is being called from
>
> for (BasicBlock::iterator ins=b->begin(), e3=b->end();
> ins!=e3; ++ins, ++l) // get instru...