> } the right way to do it, or am I missing something? > } > Check out llvm/include/llvm/User.h line 25 or so... Yup, more specifically, you want the getOperand(n) and getNumOperands() methods... -Chris http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/