search for: bumpptrallocatorimpl

Displaying 15 results from an estimated 15 matches for "bumpptrallocatorimpl".

2015 May 11
2
[LLVMdev] Bug in Support/Allocator.h
Hi, llvm::BumpPtrAllocatorImpl::Reset() looks like it has a bug. There is this check at the top: if (Slabs.empty()) return; But what if you don't have any normal Slabs allocated but only CustomSizedSlabs. I think this should be: if (Slabs.empty() && CustomSizedSlabs.empty()) return;
2016 Mar 23
4
UBSan, StringRef and Allocator.h
Hi all (No idea if I have the correct audience. Please CC more people as needed). I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. The problem is that lld requests that we StringRef::copy an empty string. This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator happened to not have anything allocated yet so the CurPtr is nullptr, but given that we need 0 space we think we have enough space and return...
2016 Mar 23
3
UBSan, StringRef and Allocator.h
...m> wrote: > > > > On Tue, Mar 22, 2016 at 5:30 PM, Pete Cooper <peter_cooper at apple.com <mailto:peter_cooper at apple.com>> wrote: > Hi all > > (No idea if I have the correct audience. Please CC more people as needed). > > I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. > > The problem is that lld requests that we StringRef::copy an empty string. This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator happened to not have anything allocated yet so the CurPtr is nullptr, but given that we need 0 space we think we have enough space a...
2016 Mar 23
0
UBSan, StringRef and Allocator.h
On Tue, Mar 22, 2016 at 5:30 PM, Pete Cooper <peter_cooper at apple.com> wrote: > Hi all > > (No idea if I have the correct audience. Please CC more people as needed). > > I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. > > The problem is that lld requests that we StringRef::copy an empty string. > This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator > happened to not have anything allocated yet so the CurPtr is nullptr, but > given that we need 0 space we think we have e...
2016 Mar 23
0
UBSan, StringRef and Allocator.h
On Tue, Mar 22, 2016 at 5:30 PM, Pete Cooper via llvm-dev <llvm-dev at lists.llvm.org> wrote: > Hi all > > (No idea if I have the correct audience. Please CC more people as needed). > > I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. > > The problem is that lld requests that we StringRef::copy an empty string. > This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator > happened to not have anything allocated yet so the CurPtr is nullptr, but > given that we need 0 space we think we have e...
2016 Mar 23
0
UBSan, StringRef and Allocator.h
...;> >> On Tue, Mar 22, 2016 at 5:30 PM, Pete Cooper <peter_cooper at apple.com <mailto:peter_cooper at apple.com>> wrote: >> Hi all >> >> (No idea if I have the correct audience. Please CC more people as needed). >> >> I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. >> >> The problem is that lld requests that we StringRef::copy an empty string. This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator happened to not have anything allocated yet so the CurPtr is nullptr, but given that we need 0 space we think we have enough...
2016 Mar 28
2
UBSan, StringRef and Allocator.h
...mail.com> wrote: > > > > On Tue, Mar 22, 2016 at 5:30 PM, Pete Cooper <peter_cooper at apple.com> > wrote: > >> Hi all >> >> (No idea if I have the correct audience. Please CC more people as >> needed). >> >> I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. >> >> The problem is that lld requests that we StringRef::copy an empty >> string. This passes a length of 0 to a BumpPtrAllocator. The >> BumpPtrAllocator happened to not have anything allocated yet so the CurPtr >> is nullptr, but given that we need 0 spa...
2016 Mar 29
0
UBSan, StringRef and Allocator.h
...ue, Mar 22, 2016 at 5:30 PM, Pete Cooper <peter_cooper at apple.com <mailto:peter_cooper at apple.com>> wrote: >>> Hi all >>> >>> (No idea if I have the correct audience. Please CC more people as needed). >>> >>> I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. >>> >>> The problem is that lld requests that we StringRef::copy an empty string. This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator happened to not have anything allocated yet so the CurPtr is nullptr, but given that we need 0 space we think we hav...
2016 Mar 29
2
UBSan, StringRef and Allocator.h
...5:30 PM, Pete Cooper <peter_cooper at apple.com <mailto:peter_cooper at apple.com>> wrote: >>>> Hi all >>>> >>>> (No idea if I have the correct audience. Please CC more people as needed). >>>> >>>> I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. >>>> >>>> The problem is that lld requests that we StringRef::copy an empty string. This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator happened to not have anything allocated yet so the CurPtr is nullptr, but given that we need 0 space we thin...
2016 Mar 23
1
UBSan, StringRef and Allocator.h
...ue, Mar 22, 2016 at 5:30 PM, Pete Cooper via llvm-dev > <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: >> Hi all >> >> (No idea if I have the correct audience. Please CC more people as needed). >> >> I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. >> >> The problem is that lld requests that we StringRef::copy an empty string. >> This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator >> happened to not have anything allocated yet so the CurPtr is nullptr, but >> given that we need 0 spa...
2016 Mar 29
0
UBSan, StringRef and Allocator.h
...;>wrote: >>>>> >>>>> Hi all >>>>> >>>>> (No idea if I have the correct audience. Please CC more >>>>> people as needed). >>>>> >>>>> I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. >>>>> >>>>> The problem is that lld requests that we StringRef::copy >>>>> an empty string. This passes a length of 0 to a >>>>> BumpPtrAllocator. The BumpPtrAllocator happened to not >>>>&gt...
2016 Mar 30
1
UBSan, StringRef and Allocator.h
...apple.com <mailto:peter_cooper at apple.com>> wrote: >>>>>> Hi all >>>>>> >>>>>> (No idea if I have the correct audience. Please CC more people as needed). >>>>>> >>>>>> I have an UBSan failure in BumpPtrAllocatorImpl.Allocate. >>>>>> >>>>>> The problem is that lld requests that we StringRef::copy an empty string. This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator happened to not have anything allocated yet so the CurPtr is nullptr, but given that we need...
2016 Jul 20
2
[XRay] Build instrumented Clang, some analysis results
...dPointer(void const*) 214706 clang::Preprocessor::Lex(clang::Token&) 193352 llvm::FoldingSetNodeID::AddInteger(unsigned int) 161706 clang::Lexer::LexTokenInternal(clang::Token&, bool) 161055 clang::Lexer::Lex(clang::Token&) 143420 clang::DeclarationName::getNameKind() const 142071 llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>::Allocate(unsigned long, unsigned long) 139009 clang::NamespaceDecl::getOriginalNamespace() 125706 clang::Redeclarable<clang::TagDecl>::DeclLink::getNext(clang::TagDecl const*) const 107928 clang::Type::getAsTagDecl() const 107785 clang::Type::getA...
2014 Jun 12
2
[LLVMdev] include's are not being located
...der.h:24: In file included from /usr/local/include/llvm/IR/Instructions.h:22: In file included from /usr/local/include/llvm/IR/Attributes.h:20: In file included from /usr/local/include/llvm/ADT/FoldingSet.h:21: /usr/local/include/llvm/Support/Allocator.h:134:70: error: expected expression BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>> { ^ /usr/local/include/llvm/Support/Allocator.h:346:2: error: expected a type }; Do you know what would cause these errors? Thank you! Joseph
2014 Jun 11
2
[LLVMdev] include's are not being located
Hi Dan, Thank you for you response. As you suspect, I am struggling with the building of LLVM/Clang. I thought building LLVM/Clang was required in order to build the tutorial and eventually modify for testing/learning. From what you are saying, it sounds like I am mistaken? In reference to what you mentioned about installing/building and —prefix and my misuse of my build directory: I am