Compiler projects using llvm
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s | FileCheck %s
; PR4688

; Return types can be empty structs, which can be awkward.

target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
target triple = "x86_64-unknown-linux-gnu"

define void @_ZN15QtSharedPointer22internalSafetyCheckAddEPVKv(ptr %ptr) {
; CHECK-LABEL: _ZN15QtSharedPointer22internalSafetyCheckAddEPVKv:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    pushq %rax
; CHECK-NEXT:    .cfi_def_cfa_offset 16
; CHECK-NEXT:    callq _ZNK5QHashIPv15QHashDummyValueE5valueERKS0_
; CHECK-NEXT:    popq %rax
; CHECK-NEXT:    .cfi_def_cfa_offset 8
; CHECK-NEXT:    retq
entry:
	%0 = call { } @_ZNK5QHashIPv15QHashDummyValueE5valueERKS0_(ptr undef)		; <{ }> [#uses=0]
        ret void
}

declare hidden { } @_ZNK5QHashIPv15QHashDummyValueE5valueERKS0_(ptr nocapture) nounwind