In n transform I'm writing, when I call arg_size() on a variable argument function similar to printf, it returns 1. However when I call getNumOperands() it returns 0. Isn't an argument a type of operand? If so, shouldn't the number of operands be at least as big as the number of arguments? Ryan -- Ryan M. Lefever [http://www.ews.uiuc.edu/~lefever]
On Sun, 3 Dec 2006, Ryan M. Lefever wrote:> In n transform I'm writing, when I call arg_size() on a variable > argument function similar to printf, it returns 1. However when I call > getNumOperands() it returns 0. Isn't an argument a type of operand?Nope, arguments are not operands. Functions never have operands. -Chris -- http://nondot.org/sabre/ http://llvm.org/