diff options
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 3e07761dc7..66ea4d272e 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); |