Displaying 3 results from an estimated 3 matches for "applytofields".
2006 Mar 15
0
[LLVMdev] Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
Hi,
Here is the follow on patch for this problem. Please apply this from
the top of the tree and rebuild.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: op
Type: application/octet-stream
Size: 2548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060315/eee8a766/attachment.obj>
-------------- next part
2006 Mar 16
2
[LLVMdev] Re: Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
...;) @0x8afbcf0: 0x0
This null pointer comes from line 274 of MachineDebugInfo.cpp:
virtual void Apply(std::string &Field) {
if (Field.empty()) {
Elements.push_back(NULL);
} else {
Elements.push_back(SR.getString(Field));
}
}
Which comes from this:
void TypeDesc::ApplyToFields(DIVisitor *Visitor) {
DebugInfoDesc::ApplyToFields(Visitor);
Visitor->Apply(Context);
Visitor->Apply(Name);
Name is empty. Here's a minimal testcase that reproduces the crash:
unsigned __clz_tab[] = {0};
just invoke cc1 as given in the beginning of this email with thi...
2006 Mar 15
2
[LLVMdev] Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
On Wed, 15 Mar 2006, Vladimir Prus wrote:
>> Please give it a try and let me know if it works any better for you!
>
> Here we go:
Wow, you are good at finding problems! Thanks!
> -fvisibility=hidden -DHIDE_EXPORTS
> -c ../../2006-03-14-llvm-gcc-4/gcc/libgcc2.c -o libgcc/./_fixunsxfdi.o
> cc1: /space/p2/ghost/build/llvm-cvs/include/llvm/Instructions.h:72: void
>