From: Chris Lattner Date: Tue, 30 Oct 2001 16:38:49 +0000 (+0000) Subject: Fix ordering problem. Found by purify. :) X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6c80e732dc6a145d66913017775ef3c7d560832c;p=oota-llvm.git Fix ordering problem. Found by purify. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1042 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 3e07761dc75..66ea4d272ef 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -158,7 +158,7 @@ public: inline IIty operator->() const { return operator*(); } inline bool operator==(const InstIterator &y) const { - return BB == y.BB && (BI == y.BI || BB == BBs.end()); + return BB == y.BB && (BB == BBs.end() || BI == y.BI); } inline bool operator!=(const InstIterator& y) const { return !operator==(y);