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