Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm-upgrade can't do uint* %x and int* %x together. #1509

Closed
npatil2 opened this issue Jan 28, 2007 · 3 comments
Closed

llvm-upgrade can't do uint* %x and int* %x together. #1509

npatil2 opened this issue Jan 28, 2007 · 3 comments
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm-tools All llvm tools that do not have corresponding tag

Comments

@npatil2
Copy link

npatil2 commented Jan 28, 2007

Bugzilla Link 1137
Resolution FIXED
Resolved on Nov 07, 2018 00:22
Version trunk
OS Linux

Extended Description

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 ; [#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;
}
}

@llvmbot
Copy link
Collaborator

llvmbot commented Jan 28, 2007

That's a bit scarey. I'll look into this right away.

@llvmbot
Copy link
Collaborator

llvmbot commented Jan 28, 2007

@npatil2
Copy link
Author

npatil2 commented Jan 28, 2007

Wow, fixed within two hours of reporting!
that's a great turnaround time... :-)

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm-tools All llvm tools that do not have corresponding tag
Projects
None yet
Development

No branches or pull requests

2 participants