aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-11-16 20:40:06 +0000
committerDan Gohman <gohman@apple.com>2009-11-16 20:40:06 +0000
commitaec15e84560821022d7771be34b415a4bc70b7cf (patch)
tree89d2b5f60ec24e217a32482419506c7b770bb591
parent552c0dff3408424404d1e9639a5710207b862964 (diff)
downloadexternal_llvm-aec15e84560821022d7771be34b415a4bc70b7cf.zip
external_llvm-aec15e84560821022d7771be34b415a4bc70b7cf.tar.gz
external_llvm-aec15e84560821022d7771be34b415a4bc70b7cf.tar.bz2
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
-rw-r--r--include/llvm/CodeGen/PseudoSourceValue.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/PseudoSourceValue.h b/include/llvm/CodeGen/PseudoSourceValue.h
index 7b3b038..bace631 100644
--- a/include/llvm/CodeGen/PseudoSourceValue.h
+++ b/include/llvm/CodeGen/PseudoSourceValue.h
@@ -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,