Rename Value::getValueType to getValueID, to avoid confusion with
[oota-llvm.git] / include / llvm / Constant.h
index 4b3547ebf8f6b8c9192be0f26d0395429fbe09e6..bfe65a6faa1549278cccd3d71e94c8c04a7041a3 100644 (file)
@@ -88,8 +88,8 @@ public:
   static inline bool classof(const Constant *) { return true; }
   static inline bool classof(const GlobalValue *) { return true; }
   static inline bool classof(const Value *V) {
-    return V->getValueType() >= ConstantFirstVal &&
-           V->getValueType() <= ConstantLastVal;
+    return V->getValueID() >= ConstantFirstVal &&
+           V->getValueID() <= ConstantLastVal;
   }
 
   /// replaceUsesOfWithOnConstant - This method is a special form of