projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove a couple more unsafe xforms in the face of overflow.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2002-09-17-GetElementPtrCrash.ll
1
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
2
3
%bob = type { int }
4
5
int %alias() {
6
%pbob1 = alloca %bob
7
%pbob2 = getelementptr %bob* %pbob1
8
%pbobel = getelementptr %bob* %pbob2, long 0, uint 0
9
%rval = load int* %pbobel
10
ret int %rval
11
}
12