From 38717f6ccfaa926ffa614f4232d744d4b50f5798 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 26 Feb 2010 08:05:36 +0000 Subject: fix a nasty bug in CheckTypeMatcher::isEqualImpl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97216 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/DAGISelMatcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/TableGen/DAGISelMatcher.h') diff --git a/utils/TableGen/DAGISelMatcher.h b/utils/TableGen/DAGISelMatcher.h index df6389555b..b5c6e55641 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; } }; -- cgit v1.2.3