How to get the possible predecessors for a PHINode

Hi all,
I have encountered the following instruction:

%.0.i = phi i8* [ %9, %8 ], [ %11, %10 ]

How can I get the %8 and %10?

I’m using http://llvm.org/doxygen/classllvm_1_1PHINode.html as a reference but I cannot understand how to do that.

Thanks

Use a for-loop. PHINode->getNumIncomingValues() as the loop condition, inside the loop pass the index to PHINode->getIncomingBlock()

Zhang

Thanks that solved my problem

Alberto