Add a comment on PHINode::Create().
authorJay Foad <jay.foad@gmail.com>
Wed, 30 Mar 2011 13:29:06 +0000 (13:29 +0000)
committerJay Foad <jay.foad@gmail.com>
Wed, 30 Mar 2011 13:29:06 +0000 (13:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128540 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instructions.h

index e7161cd1d46c9d26964ea3587aedfaef240f2898..24b59e481cacca68bb24e24938b5f39a5e31429a 100644 (file)
@@ -1829,6 +1829,8 @@ class PHINode : public Instruction {
 protected:
   virtual PHINode *clone_impl() const;
 public:
+  /// Constructors - NumReservedValues is a hint for the number of incoming
+  /// edges that this phi node will have (use 0 if you really have no idea).
   static PHINode *Create(const Type *Ty, unsigned NumReservedValues,
                          const Twine &NameStr = "",
                          Instruction *InsertBefore = 0) {