summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-26 08:05:36 +0000
committerChris Lattner <sabre@nondot.org>2010-02-26 08:05:36 +0000
commita6142a241a24a574e905e0964ec0860ca00c3b7a (patch)
treec35025a5b719b040756b9691d5d9502a1384f85d /llvm/utils/TableGen
parentbe5b634cea28c16f5eb4f05dad3dc76b01dd5386 (diff)
downloadbcm5719-llvm-a6142a241a24a574e905e0964ec0860ca00c3b7a.tar.gz
bcm5719-llvm-a6142a241a24a574e905e0964ec0860ca00c3b7a.zip
fix a nasty bug in CheckTypeMatcher::isEqualImpl
llvm-svn: 97216
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/DAGISelMatcher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcher.h b/llvm/utils/TableGen/DAGISelMatcher.h
index df6389555b4..b5c6e55641c 100644
--- a/llvm/utils/TableGen/DAGISelMatcher.h
+++ b/llvm/utils/TableGen/DAGISelMatcher.h
@@ -409,7 +409,7 @@ public:
private:
virtual void printImpl(raw_ostream &OS, unsigned indent) const;
virtual bool isEqualImpl(const Matcher *M) const {
- return cast<CheckTypeMatcher>(this)->Type == Type;
+ return cast<CheckTypeMatcher>(M)->Type == Type;
}
virtual unsigned getHashImpl() const { return Type; }
};
OpenPOWER on IntegriCloud