@@ -1883,6 +1883,12 @@ destructors_for_temps.cpp:
1883
1883
# 30| Type = [Class] ClassWithDestructor2
1884
1884
# 30| ValueCategory = lvalue
1885
1885
# 31| getStmt(1): [ReturnStmt] return ...
1886
+ # 31| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
1887
+ # 31| Type = [VoidType] void
1888
+ # 31| ValueCategory = prvalue
1889
+ # 31| getQualifier(): [ReuseExpr] reuse of temporary object
1890
+ # 31| Type = [Class] ClassWithDestructor2
1891
+ # 31| ValueCategory = xvalue
1886
1892
# 33| [TopLevelFunction] void temp_test4()
1887
1893
# 33| <params>:
1888
1894
# 33| getEntryPoint(): [BlockStmt] { ... }
@@ -1914,6 +1920,12 @@ destructors_for_temps.cpp:
1914
1920
# 36| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
1915
1921
# 36| Type = [VoidType] void
1916
1922
# 36| ValueCategory = prvalue
1923
+ # 36| getQualifier(): [ReuseExpr] reuse of temporary object
1924
+ # 36| Type = [Class] ClassWithDestructor2
1925
+ # 36| ValueCategory = xvalue
1926
+ # 36| getImplicitDestructorCall(1): [DestructorCall] call to ~ClassWithDestructor2
1927
+ # 36| Type = [VoidType] void
1928
+ # 36| ValueCategory = prvalue
1917
1929
# 36| getQualifier(): [VariableAccess] c
1918
1930
# 36| Type = [Class] ClassWithDestructor2
1919
1931
# 36| ValueCategory = lvalue
@@ -11743,6 +11755,12 @@ ir.cpp:
11743
11755
# 1426| getImplicitDestructorCall(0): [DestructorCall] call to ~String
11744
11756
# 1426| Type = [VoidType] void
11745
11757
# 1426| ValueCategory = prvalue
11758
+ # 1426| getQualifier(): [ReuseExpr] reuse of temporary object
11759
+ # 1426| Type = [Struct] String
11760
+ # 1426| ValueCategory = xvalue
11761
+ # 1426| getImplicitDestructorCall(1): [DestructorCall] call to ~String
11762
+ # 1426| Type = [VoidType] void
11763
+ # 1426| ValueCategory = prvalue
11746
11764
# 1426| getQualifier(): [VariableAccess] s
11747
11765
# 1426| Type = [Struct] String
11748
11766
# 1426| ValueCategory = lvalue
@@ -11838,6 +11856,12 @@ ir.cpp:
11838
11856
# 1438| getImplicitDestructorCall(1): [DestructorCall] call to ~destructor_only
11839
11857
# 1438| Type = [VoidType] void
11840
11858
# 1438| ValueCategory = prvalue
11859
+ # 1438| getQualifier(): [ReuseExpr] reuse of temporary object
11860
+ # 1438| Type = [Class] destructor_only
11861
+ # 1438| ValueCategory = xvalue
11862
+ # 1438| getImplicitDestructorCall(2): [DestructorCall] call to ~destructor_only
11863
+ # 1438| Type = [VoidType] void
11864
+ # 1438| ValueCategory = prvalue
11841
11865
# 1438| getQualifier(): [VariableAccess] d
11842
11866
# 1438| Type = [Class] destructor_only
11843
11867
# 1438| ValueCategory = lvalue
0 commit comments