bolt/deps/llvm-18.1.8/llvm/test/Transforms/InstCombine/calloc-mismatch.ll
2025-02-14 19:21:04 +01:00

16 lines
465 B
LLVM

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