[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-bugs
Subject:    [LLVMbugs] [Bug 2733] New: Can't use named primitive type in
From:       bugzilla-daemon () cs ! uiuc ! edu
Date:       2008-08-30 0:30:33
Message-ID: bug-2733-206 () http ! llvm ! org/bugs/
[Download RAW message or body]

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

           Summary: Can't use named primitive type in structure definition
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-as
        AssignedTo: unassignedbugs@nondot.org
        ReportedBy: d_j_v@mac.com
                CC: llvmbugs@cs.uiuc.edu


Here is some .ll code:

%t1 = type i32
%t2 = type { %t1 }
@i1 = constant %t2 { %t1 15 } ; ERROR
@i2 = constant %t2 { i32 15 } ; NO ERROR

@i1 will not compile, with the following error:
error: syntax error, unexpected EUINT64VAL, expecting '*' while reading token:
'15'

@i2 compiles just fine.

Expected behavior is that both @i1 and @i2 would compile equally well. Using
%t1 in the definition of type %t2 works, so, by analogy, using it in the
definition of @i1 should work as well.


-- 
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.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic