1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
4 ; The argument types should match if it is the standard library calloc.
5 ; Don't crash analyzing an imposter.
7 declare ptr @calloc(i64, i32)
9 define void @PR50846() {
10 ; CHECK-LABEL: @PR50846(
11 ; CHECK-NEXT: [[CALL:%.*]] = call ptr @calloc(i64 1, i32 1)
12 ; CHECK-NEXT: ret void
14 %call = call ptr @calloc(i64 1, i32 1)