diff --git a/include/llvm/User.h b/include/llvm/User.h index e78d21bbca0..c2f0781aa6f 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -36,6 +36,10 @@ public: } inline unsigned getNumOperands() const { return Operands.size(); } + inline std::vector copyOperands() const { + return std::vector(op_begin(), op_end()); + } + // --------------------------------------------------------------------------- // Operand Iterator interface... //