llvm.org GIT mirror llvm / aec15e8
Make PseudoSourceValue's classof recognize FixedStackPseudoSourceValueVal, to respect this isa relationship. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88954 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3131 virtual void printCustom(raw_ostream &O) const;
3232
3333 public:
34 PseudoSourceValue(enum ValueTy Subclass = PseudoSourceValueVal);
34 explicit PseudoSourceValue(enum ValueTy Subclass = PseudoSourceValueVal);
3535
3636 /// isConstant - Test whether the memory pointed to by this
3737 /// PseudoSourceValue has a constant value.
5151 ///
5252 static inline bool classof(const PseudoSourceValue *) { return true; }
5353 static inline bool classof(const Value *V) {
54 return V->getValueID() == PseudoSourceValueVal;
54 return V->getValueID() == PseudoSourceValueVal ||
55 V->getValueID() == FixedStackPseudoSourceValueVal;
5556 }
5657
5758 /// A pseudo source value referencing a fixed stack frame entry,