[llvm-commits] [llvm] r88954 - /llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h

Dan Gohman gohman at apple.com
Mon Nov 16 12:40:07 PST 2009


Author: djg
Date: Mon Nov 16 14:40:06 2009
New Revision: 88954

URL: http://llvm.org/viewvc/llvm-project?rev=88954&view=rev
Log:
Make PseudoSourceValue's classof recognize
FixedStackPseudoSourceValueVal, to respect this isa relationship.

Modified:
    llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h

Modified: llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h?rev=88954&r1=88953&r2=88954&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h (original)
+++ llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h Mon Nov 16 14:40:06 2009
@@ -32,7 +32,7 @@
     virtual void printCustom(raw_ostream &O) const;
 
   public:
-    PseudoSourceValue(enum ValueTy Subclass = PseudoSourceValueVal);
+    explicit PseudoSourceValue(enum ValueTy Subclass = PseudoSourceValueVal);
 
     /// isConstant - Test whether the memory pointed to by this
     /// PseudoSourceValue has a constant value.
@@ -52,7 +52,8 @@
     ///
     static inline bool classof(const PseudoSourceValue *) { return true; }
     static inline bool classof(const Value *V) {
-      return V->getValueID() == PseudoSourceValueVal;
+      return V->getValueID() == PseudoSourceValueVal ||
+             V->getValueID() == FixedStackPseudoSourceValueVal;
     }
 
     /// A pseudo source value referencing a fixed stack frame entry,





More information about the llvm-commits mailing list