[LLVMbugs] [Bug 4539] New: Verifier: check for unsized TLS objects

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jul 11 13:35:26 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4539

           Summary: Verifier: check for unsized TLS objects
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: clattner at apple.com, llvmbugs at cs.uiuc.edu


On 2009-07-08 23:00, Chris Lattner wrote:
>> +++ llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp Wed Jul  8  
>> 14:04:27 2009
>> @@ -270,9 +270,8 @@
>>   }
>>   const Type *Ty = cast<PointerType>(GV->getType())->getElementType();
>>   if (!Ty->isSized() || isZeroLengthArray(Ty)) {
>> -    cerr << "Size of thread local object " << GVar->getName()
>> -         << " is unknown\n";
>> -    abort();
>> +    llvm_report_error("Size of thread local object " + GVar- 
>>> getName()
>> +                      + " is unknown");
>
> This should be an assertion, does the verifier catch this?  If not, it  
> should.

I don't see any code in the verifier to check Thread Local variables.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list