fix a nasty bug in CheckTypeMatcher::isEqualImpl

llvm-svn: 97216
This commit is contained in:
Chris Lattner 2010-02-26 08:05:36 +00:00
parent be5b634cea
commit a6142a241a
1 changed files with 1 additions and 1 deletions

View File

@ -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; }
};