JinGu Kang
2014-Dec-18 15:20 UTC
[LLVMdev] Please change the comment of 'insert' member function of SmallPtrSetImpl
Hi all, I have a compilation failure with 'insert' member function of SmallPtrSetImpl class because the return value is changed from r222334. But the comment of the function is same with before as follows: /// insert - This returns true if the pointer was new to the set, false if it /// was already in the set. std::pair<iterator, bool> insert(PtrType Ptr) { auto p = insert_imp(PtrTraits::getAsVoidPointer(Ptr)); return std::make_pair(iterator(p.first, CurArray + CurArraySize), p.second); } If the comment is changed, please change it. Thanks, JinGu Kang
David Blaikie
2014-Dec-19 21:46 UTC
[LLVMdev] Please change the comment of 'insert' member function of SmallPtrSetImpl
Comment updated in r224619 On Thu, Dec 18, 2014 at 7:20 AM, JinGu Kang <jingu at codeplay.com> wrote:> > Hi all, > > I have a compilation failure with 'insert' member function of > SmallPtrSetImpl class because the return value is changed from r222334. But > the comment of the function is same with before as follows: > > /// insert - This returns true if the pointer was new to the set, false > if it > /// was already in the set. > std::pair<iterator, bool> insert(PtrType Ptr) { > auto p = insert_imp(PtrTraits::getAsVoidPointer(Ptr)); > return std::make_pair(iterator(p.first, CurArray + CurArraySize), > p.second); > } > > If the comment is changed, please change it. > > Thanks, > JinGu Kang > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141219/3674d13f/attachment.html>
jingu
2014-Dec-19 21:54 UTC
[LLVMdev] Please change the comment of 'insert' member function of SmallPtrSetImpl
Thanks David, JinGu Kang 19/12/14 21:46, David Blaikie 쓴 글:> Comment updated in r224619 > > On Thu, Dec 18, 2014 at 7:20 AM, JinGu Kang <jingu at codeplay.com > <mailto:jingu at codeplay.com>> wrote: > > Hi all, > > I have a compilation failure with 'insert' member function of > SmallPtrSetImpl class because the return value is changed from > r222334. But the comment of the function is same with before as > follows: > > /// insert - This returns true if the pointer was new to the > set, false if it > /// was already in the set. > std::pair<iterator, bool> insert(PtrType Ptr) { > auto p = insert_imp(PtrTraits::getAsVoidPointer(Ptr)); > return std::make_pair(iterator(p.first, CurArray + > CurArraySize), p.second); > } > > If the comment is changed, please change it. > > Thanks, > JinGu Kang > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu> > http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141219/5969020e/attachment.html>