Missing files for the BlockFrequency analysis added.
[oota-llvm.git] / include / llvm / User.h
index 2aca78c41a64c07423508888028486b2f95f0f5d..3f9c28e7b381c165a510158abc8c7fb621e534ea 100644 (file)
@@ -53,6 +53,7 @@ protected:
   void dropHungoffUses() {
     Use::zap(OperandList, OperandList + NumOperands, true);
     OperandList = 0;
+    // Reset NumOperands so User::operator delete() does the right thing.
     NumOperands = 0;
   }
 public:
@@ -94,11 +95,11 @@ public:
     OperandList[i] = Val;
   }
   const Use &getOperandUse(unsigned i) const {
-    assert(i < NumOperands && "getOperand() out of range!");
+    assert(i < NumOperands && "getOperandUse() out of range!");
     return OperandList[i];
   }
   Use &getOperandUse(unsigned i) {
-    assert(i < NumOperands && "getOperand() out of range!");
+    assert(i < NumOperands && "getOperandUse() out of range!");
     return OperandList[i];
   }