// RUN: %clang_cc1 -no-opaque-pointers %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
;
;
void
// CHECK: define{{.*}} %struct.B* @_Z1fP1A(%struct.A* noundef %a) [[NUW:#[0-9]+]]
B *
// PR5965
// Don't crash on a derived-to-base conversion of an r-value
// aggregate.
// CHECK: attributes [[NUW]] = { mustprogress noinline nounwind{{.*}} }