Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
llvm
/
3da59db637a887474c1b1346c1f3ccf53b6c4663
/
.
/
test
/
Transforms
/
InstCombine
/
cast-malloc.ll
blob: 25eb4367c69593135df109d6a213adb5c9074395 [
file
] [
log
] [
blame
]
; test that casted mallocs get converted to malloc of the right type
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep bitcast
int
*
%test
(
uint
%size
)
{
%X
=
malloc
long
,
uint
%size
%ret
=
bitcast
long
*
%X
to
int
*
ret
int
*
%ret
}