IR: Move NumOperands from User to Value, NFC
[oota-llvm.git] / lib / IR / Value.cpp
index b5af72b858ea9df48bed461d3890ae2b26723c28..862f08c896627c8c61f6c05b352ecfd25976e4b8 100644 (file)
@@ -45,7 +45,8 @@ static inline Type *checkType(Type *Ty) {
 
 Value::Value(Type *ty, unsigned scid)
     : VTy(checkType(ty)), UseList(nullptr), Name(nullptr), SubclassID(scid),
-      HasValueHandle(0), SubclassOptionalData(0), SubclassData(0) {
+      HasValueHandle(0), SubclassOptionalData(0), SubclassData(0),
+      NumOperands(0) {
   // FIXME: Why isn't this in the subclass gunk??
   // Note, we cannot call isa<CallInst> before the CallInst has been
   // constructed.