summaryrefslogtreecommitdiff
path: root/test/Assembler/2007-02-07-UpgradeGVarConflict.ll
blob: 06e9525ee90e61cc2afb6b73ed1f12e10aa6f4aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; For PR1187
; RUN: llvm-upgrade < %s > /dev/null

%struct.isc_hash_t = type { uint, sbyte*, int, uint, uint, 
                            [4 x ubyte], ulong, ushort* }
%hash = internal global %struct.isc_hash_t* null

implementation

void %somefunc() {
  %key_addr = alloca sbyte*
  %tmp21 = load sbyte** %key_addr
  %tmp22 = call fastcc uint %hash(sbyte* %tmp21, uint 0)
  ret void
}

internal fastcc uint %hash(sbyte* %key, uint %case_sensitive) {
  ret uint 0
}