[LLVMbugs] [Bug 10367] New: Fix the design of GlobalAlias to not require dest type to match source type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 14 23:25:33 PDT 2011


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

           Summary: Fix the design of GlobalAlias to not require dest type
                    to match source type
           Product: libraries
           Version: 1.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


Global alias is currently defined to have its own type, and then have an
initializer of the same type.  The initializer is a "Constant*" which is either
a) a global value, b) a constant expr bitcast, c) a constantexpr gep with all
zero indices, d) null (which isn't valid, but transiently happens).

This doesn't make sense for a number of reasons.  Instead, the initializer of a
GlobalAlias should be required to be a GlobalValue, but the type of the source
and dest of the alias should not be required to be the same, they should just
be completely decoupled.

-Chris

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