@@ -21,7 +21,7 @@ module @"/Users/henrichlauko/src/clangir/clang/test/CIR/CodeGen/dynamic-cast.cpp
2121 cir.global constant external @_ZTI7Derived = #cir.typeinfo <{#cir.global_view <@_ZTVN10__cxxabiv120__si_class_type_infoE , [2 : i32 ]> : !cir.ptr <!u8i >, #cir.global_view <@_ZTS7Derived > : !cir.ptr <!u8i >, #cir.global_view <@_ZTI4Base > : !cir.ptr <!u8i >}> : !rec_anon_struct {alignment = 8 : i64 } loc (#loc28 )
2222 cir.func private @__dynamic_cast (!cir.ptr <!void >, !cir.ptr <!u8i >, !cir.ptr <!u8i >, !s64i ) -> !cir.ptr <!void > loc (#loc )
2323 cir.func private @__cxa_bad_cast () loc (#loc )
24- cir.func dso_local @_Z8ptr_castP4Base (%arg0: !cir.ptr <!rec_Base > loc (fused [#loc5 , #loc6 ])) -> !cir.ptr <!rec_Derived > {inline = #cir.inline <no >, nothrow = #cir.nothrow , optnone = #cir.optnone } {
24+ cir.func dso_local optnone @_Z8ptr_castP4Base (%arg0: !cir.ptr <!rec_Base > loc (fused [#loc5 , #loc6 ])) -> !cir.ptr <!rec_Derived > {inline = #cir.inline <no >, nothrow = #cir.nothrow } {
2525 %0 = cir.alloca !cir.ptr <!rec_Base >, !cir.ptr <!cir.ptr <!rec_Base >>, [" b" , init ] {alignment = 8 : i64 } loc (#loc30 )
2626 %1 = cir.alloca !cir.ptr <!rec_Derived >, !cir.ptr <!cir.ptr <!rec_Derived >>, [" __retval" ] {alignment = 8 : i64 } loc (#loc4 )
2727 cir.store %arg0 , %0 : !cir.ptr <!rec_Base >, !cir.ptr <!cir.ptr <!rec_Base >> loc (#loc7 )
@@ -43,7 +43,7 @@ module @"/Users/henrichlauko/src/clangir/clang/test/CIR/CodeGen/dynamic-cast.cpp
4343 %5 = cir.load %1 : !cir.ptr <!cir.ptr <!rec_Derived >>, !cir.ptr <!rec_Derived > loc (#loc31 )
4444 cir.return %5 : !cir.ptr <!rec_Derived > loc (#loc31 )
4545 } loc (#loc29 )
46- cir.func dso_local @_Z8ref_castR4Base (%arg0: !cir.ptr <!rec_Base > loc (fused [#loc12 , #loc13 ])) -> !cir.ptr <!rec_Derived > {inline = #cir.inline <no >, nothrow = #cir.nothrow , optnone = #cir.optnone } {
46+ cir.func dso_local optnone @_Z8ref_castR4Base (%arg0: !cir.ptr <!rec_Base > loc (fused [#loc12 , #loc13 ])) -> !cir.ptr <!rec_Derived > {inline = #cir.inline <no >, nothrow = #cir.nothrow } {
4747 %0 = cir.alloca !cir.ptr <!rec_Base >, !cir.ptr <!cir.ptr <!rec_Base >>, [" b" , init , const ] {alignment = 8 : i64 } loc (#loc33 )
4848 %1 = cir.alloca !cir.ptr <!rec_Derived >, !cir.ptr <!cir.ptr <!rec_Derived >>, [" __retval" ] {alignment = 8 : i64 } loc (#loc11 )
4949 cir.store %arg0 , %0 : !cir.ptr <!rec_Base >, !cir.ptr <!cir.ptr <!rec_Base >> loc (#loc14 )
@@ -64,7 +64,7 @@ module @"/Users/henrichlauko/src/clangir/clang/test/CIR/CodeGen/dynamic-cast.cpp
6464 %11 = cir.load %1 : !cir.ptr <!cir.ptr <!rec_Derived >>, !cir.ptr <!rec_Derived > loc (#loc35 )
6565 cir.return %11 : !cir.ptr <!rec_Derived > loc (#loc35 )
6666 } loc (#loc32 )
67- cir.func dso_local @_Z20ptr_cast_to_completeP4Base (%arg0: !cir.ptr <!rec_Base > loc (fused [#loc21 , #loc22 ])) -> !cir.ptr <!void > {inline = #cir.inline <no >, nothrow = #cir.nothrow , optnone = #cir.optnone } {
67+ cir.func dso_local optnone @_Z20ptr_cast_to_completeP4Base (%arg0: !cir.ptr <!rec_Base > loc (fused [#loc21 , #loc22 ])) -> !cir.ptr <!void > {inline = #cir.inline <no >, nothrow = #cir.nothrow } {
6868 %0 = cir.alloca !cir.ptr <!rec_Base >, !cir.ptr <!cir.ptr <!rec_Base >>, [" ptr" , init ] {alignment = 8 : i64 } loc (#loc37 )
6969 %1 = cir.alloca !cir.ptr <!void >, !cir.ptr <!cir.ptr <!void >>, [" __retval" ] {alignment = 8 : i64 } loc (#loc20 )
7070 cir.store %arg0 , %0 : !cir.ptr <!rec_Base >, !cir.ptr <!cir.ptr <!rec_Base >> loc (#loc23 )
0 commit comments