diff options
Diffstat (limited to 'include/llvm/ADT/ilist.h')
-rw-r--r-- | include/llvm/ADT/ilist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h index 6bfc10009d..9a088fd71e 100644 --- a/include/llvm/ADT/ilist.h +++ b/include/llvm/ADT/ilist.h @@ -386,7 +386,7 @@ public: } iterator insertAfter(iterator where, NodeTy *New) { - if (empty()) + if (empty()) return insert(begin(), New); else return insert(++where, New); |