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
This commit is contained in:
Dan Gohman 2009-11-16 20:40:06 +00:00
parent 552c0dff34
commit aec15e8456

View File

@ -32,7 +32,7 @@ namespace llvm {
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 @@ namespace llvm {
///
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,