1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

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 938c57ccc6
commit a26437c8f2

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