llvm-6502/test/Transforms/MergeFunc/vector-GEP-crash.ll
Matt Arsenault 0565503d5d Fix crash when looking up the addrspace of GEPs with vector types
Patch by Björn Steinbrink

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216930 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-02 18:47:54 +00:00

13 lines
313 B
LLVM

; RUN: opt -mergefunc -disable-output < %s
; This used to cause a crash when compairing the GEPs
define void @foo(<2 x i64*>) {
%tmp = getelementptr <2 x i64*> %0, <2 x i64> <i64 0, i64 0>
ret void
}
define void @bar(<2 x i64*>) {
%tmp = getelementptr <2 x i64*> %0, <2 x i64> <i64 0, i64 0>
ret void
}