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

%bob = type { int }

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