1 ; RUN: opt -instcombine -S %s | FileCheck %s
4 ; CHECK: call i64 @llvm.objectsize.i64
5 define void @foo(%opaque* sret(%opaque) %in, i64* %sizeptr) {
6 %ptr = bitcast %opaque* %in to i8*
7 %size = call i64 @llvm.objectsize.i64(i8* %ptr, i1 0, i1 0, i1 0)
8 store i64 %size, i64* %sizeptr
12 declare i64 @llvm.objectsize.i64(i8*, i1, i1, i1)