Skip to content

Verifier: check for unsized TLS objects #4911

Open
@edwintorok

Description

@edwintorok
Bugzilla Link 4539
Version unspecified
OS Linux
CC @asl,@lattner,@efriedma-quic,@nlewycky,@nigelp-xmos

Extended Description

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(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:XCorebugzillaIssues migrated from bugzillaenhancementImproving things as opposed to bug fixing, e.g. new or missing featurellvm:core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions