Fix VC++ level 4 warnings.
authorJeff Cohen <jeffc@jolt-lang.org>
Sat, 17 Dec 2005 00:18:06 +0000 (00:18 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Sat, 17 Dec 2005 00:18:06 +0000 (00:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24750 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Value.h

index e02cec132ea2659774052d0fcc16be170a6dba00..8b6601d6959b4db4dfcdeefbe7ff30ed6f1c1a9b 100644 (file)
@@ -165,7 +165,7 @@ public:
   }
 
   // Methods for support type inquiry through isa, cast, and dyn_cast:
-  static inline bool classof(const Value *V) {
+  static inline bool classof(const Value * /*V*/) {
     return true; // Values are always values.
   }
 
@@ -175,7 +175,7 @@ public:
 
 private:
   /// FIXME: this is a gross hack, needed by another gross hack.  Eliminate!
-  void setValueType(unsigned VT) { SubclassID = VT; }
+  void setValueType(unsigned short VT) { SubclassID = VT; }
   friend class Instruction;
 };