aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-30 16:38:49 +0000
committerChris Lattner <sabre@nondot.org>2001-10-30 16:38:49 +0000
commit6c80e732dc6a145d66913017775ef3c7d560832c (patch)
tree0e4c6123c65007d2ede930eabf7e6cb842d9265e /include/llvm/Function.h
parentbfbed460dfedee1a1c6e2ee45fd920d6db6d4142 (diff)
downloadexternal_llvm-6c80e732dc6a145d66913017775ef3c7d560832c.zip
external_llvm-6c80e732dc6a145d66913017775ef3c7d560832c.tar.gz
external_llvm-6c80e732dc6a145d66913017775ef3c7d560832c.tar.bz2
Fix ordering problem. Found by purify. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 3e07761..66ea4d2 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);