From: Chris Lattner Date: Fri, 26 Feb 2010 08:05:36 +0000 (+0000) Subject: fix a nasty bug in CheckTypeMatcher::isEqualImpl X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=38717f6ccfaa926ffa614f4232d744d4b50f5798;p=oota-llvm.git fix a nasty bug in CheckTypeMatcher::isEqualImpl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97216 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/DAGISelMatcher.h b/utils/TableGen/DAGISelMatcher.h index df6389555b4..b5c6e55641c 100644 --- a/utils/TableGen/DAGISelMatcher.h +++ b/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(this)->Type == Type; + return cast(M)->Type == Type; } virtual unsigned getHashImpl() const { return Type; } };