aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll
blob: 69bec19b2be62b0b555f52c3b55a6752abf7f8c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine

%bob = type { int }

int %alias() {
    %pbob1 = alloca %bob
    %pbob2 = getelementptr %bob* %pbob1
    %pbobel = getelementptr %bob* %pbob2, long 0, uint 0
    %rval = load int* %pbobel
    ret int %rval
}