[llvm-commits] [llvm] r97216 - /llvm/trunk/utils/TableGen/DAGISelMatcher.h
Chris Lattner
sabre at nondot.org
Fri Feb 26 00:05:37 PST 2010
Author: lattner
Date: Fri Feb 26 02:05:36 2010
New Revision: 97216
URL: http://llvm.org/viewvc/llvm-project?rev=97216&view=rev
Log:
fix a nasty bug in CheckTypeMatcher::isEqualImpl
Modified:
llvm/trunk/utils/TableGen/DAGISelMatcher.h
Modified: llvm/trunk/utils/TableGen/DAGISelMatcher.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelMatcher.h?rev=97216&r1=97215&r2=97216&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcher.h (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcher.h Fri Feb 26 02:05:36 2010
@@ -409,7 +409,7 @@
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; }
};
More information about the llvm-commits
mailing list