Reid Spencer | 3da59db | 2006-11-27 01:05:10 +0000 | [diff] [blame^] | 1 | ; test that casted mallocs get converted to malloc of the right type |
2 | ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep bitcast | ||||
3 | |||||
4 | int* %test(uint %size) { | ||||
5 | %X = malloc long, uint %size | ||||
6 | %ret = bitcast long* %X to int* | ||||
7 | ret int* %ret | ||||
8 | } |