[llvm-commits] CVS: llvm/include/llvm/User.h

LLVM llvm at cs.uiuc.edu
Sat Jul 17 16:32:21 PDT 2004



Changes in directory llvm/include/llvm:

User.h updated: 1.30 -> 1.31

---
Log message:

bug 122: http://llvm.cs.uiuc.edu/PR122 :
Remove redundancy in User::classof(Value*); GlobalValue isa Constant now.


---
Diffs of the changes:  (+1 -2)

Index: llvm/include/llvm/User.h
diff -u llvm/include/llvm/User.h:1.30 llvm/include/llvm/User.h:1.31
--- llvm/include/llvm/User.h:1.30	Sun Jun 27 13:01:15 2004
+++ llvm/include/llvm/User.h	Sat Jul 17 18:32:11 2004
@@ -87,8 +87,7 @@
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const User *) { return true; }
   static inline bool classof(const Value *V) {
-    return isa<Instruction>(V) || isa<GlobalVariable>(V) ||
-           isa<Constant>(V);
+    return isa<Instruction>(V) || isa<Constant>(V);
   }
 };
 





More information about the llvm-commits mailing list