[LLVMbugs] [Bug 1137] NEW: llvm-upgrade can't do uint %x and int %x together.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Jan 27 14:57:09 PST 2007
http://llvm.org/bugs/show_bug.cgi?id=1137
Summary: llvm-upgrade can't do uint %x and int %x together.
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-upgrade
AssignedTo: unassignedbugs at nondot.org
ReportedBy: patil.nikhil at gmail.com
llvm-upgrade cannot upgrade the following program:
; ModuleID = 'b.c'
target datalayout = "e-p:32:32"
target endian = little
target pointersize = 32
target triple = "i686-pc-linux-gnu"
implementation ; Functions:
void %main() {
entry:
%tmp = alloca uint, align 4 ; <uint*> [#uses=1]
%tmp = alloca int, align 4 ; <int*> [#uses=1]
"alloca point" = cast int 0 to int ; <int> [#uses=0]
store uint 1, uint* %tmp
store int 2, int* %tmp
br label %return
return: ; preds = %entry
ret void
}
It fails with: Redefinition of value named 'tmp' in the 'i32 *' type plane
(The above program was produced by compiling the following with the llvm-gcc4-
1.9-x86-FC5 binary:
void main()
{
{
unsigned int tmp = 1;
}
{
int tmp = 2;
}
}
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list