@@ -9068,11 +9068,11 @@ ir.cpp:
9068
9068
# 1016| getExpr(): [DeleteExpr] delete
9069
9069
# 1016| Type = [VoidType] void
9070
9070
# 1016| ValueCategory = prvalue
9071
- # 1016| getExpr (): [Literal] 0
9071
+ # 1016| getExprWithReuse (): [Literal] 0
9072
9072
# 1016| Type = [NullPointerType] decltype(nullptr)
9073
9073
# 1016| Value = [Literal] 0
9074
9074
# 1016| ValueCategory = prvalue
9075
- # 1016| getExpr ().getFullyConverted(): [StaticCast] static_cast<int *>...
9075
+ # 1016| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<int *>...
9076
9076
# 1016| Conversion = [PointerConversion] pointer conversion
9077
9077
# 1016| Type = [IntPointerType] int *
9078
9078
# 1016| Value = [StaticCast] 0
@@ -9093,18 +9093,21 @@ ir.cpp:
9093
9093
# 1017| Type = [PointerType] String *
9094
9094
# 1017| Value = [StaticCast] 0
9095
9095
# 1017| ValueCategory = prvalue
9096
+ # 1017| getExprWithReuse(): [ReuseExpr] reuse of static_cast<String *>...
9097
+ # 1017| Type = [PointerType] String *
9098
+ # 1017| ValueCategory = prvalue
9096
9099
# 1018| getStmt(2): [ExprStmt] ExprStmt
9097
9100
# 1018| getExpr(): [DeleteExpr] delete
9098
9101
# 1018| Type = [VoidType] void
9099
9102
# 1018| ValueCategory = prvalue
9100
9103
# 1018| getDeallocatorCall(): [FunctionCall] call to operator delete
9101
9104
# 1018| Type = [VoidType] void
9102
9105
# 1018| ValueCategory = prvalue
9103
- # 1018| getExpr (): [Literal] 0
9106
+ # 1018| getExprWithReuse (): [Literal] 0
9104
9107
# 1018| Type = [NullPointerType] decltype(nullptr)
9105
9108
# 1018| Value = [Literal] 0
9106
9109
# 1018| ValueCategory = prvalue
9107
- # 1018| getExpr ().getFullyConverted(): [StaticCast] static_cast<SizedDealloc *>...
9110
+ # 1018| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<SizedDealloc *>...
9108
9111
# 1018| Conversion = [PointerConversion] pointer conversion
9109
9112
# 1018| Type = [PointerType] SizedDealloc *
9110
9113
# 1018| Value = [StaticCast] 0
@@ -9113,11 +9116,11 @@ ir.cpp:
9113
9116
# 1019| getExpr(): [DeleteExpr] delete
9114
9117
# 1019| Type = [VoidType] void
9115
9118
# 1019| ValueCategory = prvalue
9116
- # 1019| getExpr (): [Literal] 0
9119
+ # 1019| getExprWithReuse (): [Literal] 0
9117
9120
# 1019| Type = [NullPointerType] decltype(nullptr)
9118
9121
# 1019| Value = [Literal] 0
9119
9122
# 1019| ValueCategory = prvalue
9120
- # 1019| getExpr ().getFullyConverted(): [StaticCast] static_cast<Overaligned *>...
9123
+ # 1019| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<Overaligned *>...
9121
9124
# 1019| Conversion = [PointerConversion] pointer conversion
9122
9125
# 1019| Type = [PointerType] Overaligned *
9123
9126
# 1019| Value = [StaticCast] 0
@@ -9138,6 +9141,9 @@ ir.cpp:
9138
9141
# 1020| Type = [PointerType] PolymorphicBase *
9139
9142
# 1020| Value = [StaticCast] 0
9140
9143
# 1020| ValueCategory = prvalue
9144
+ # 1020| getExprWithReuse(): [ReuseExpr] reuse of static_cast<PolymorphicBase *>...
9145
+ # 1020| Type = [PointerType] PolymorphicBase *
9146
+ # 1020| ValueCategory = prvalue
9141
9147
# 1021| getStmt(5): [ReturnStmt] return ...
9142
9148
# 1024| [TopLevelFunction] void OperatorDeleteArray()
9143
9149
# 1024| <params>:
@@ -9146,11 +9152,11 @@ ir.cpp:
9146
9152
# 1025| getExpr(): [DeleteArrayExpr] delete[]
9147
9153
# 1025| Type = [VoidType] void
9148
9154
# 1025| ValueCategory = prvalue
9149
- # 1025| getExpr (): [Literal] 0
9155
+ # 1025| getExprWithReuse (): [Literal] 0
9150
9156
# 1025| Type = [NullPointerType] decltype(nullptr)
9151
9157
# 1025| Value = [Literal] 0
9152
9158
# 1025| ValueCategory = prvalue
9153
- # 1025| getExpr ().getFullyConverted(): [StaticCast] static_cast<int *>...
9159
+ # 1025| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<int *>...
9154
9160
# 1025| Conversion = [PointerConversion] pointer conversion
9155
9161
# 1025| Type = [IntPointerType] int *
9156
9162
# 1025| Value = [StaticCast] 0
@@ -9171,18 +9177,21 @@ ir.cpp:
9171
9177
# 1026| Type = [PointerType] String *
9172
9178
# 1026| Value = [StaticCast] 0
9173
9179
# 1026| ValueCategory = prvalue
9180
+ # 1026| getExprWithReuse(): [ReuseExpr] reuse of static_cast<String *>...
9181
+ # 1026| Type = [PointerType] String *
9182
+ # 1026| ValueCategory = prvalue
9174
9183
# 1027| getStmt(2): [ExprStmt] ExprStmt
9175
9184
# 1027| getExpr(): [DeleteArrayExpr] delete[]
9176
9185
# 1027| Type = [VoidType] void
9177
9186
# 1027| ValueCategory = prvalue
9178
9187
# 1027| getDeallocatorCall(): [FunctionCall] call to operator delete[]
9179
9188
# 1027| Type = [VoidType] void
9180
9189
# 1027| ValueCategory = prvalue
9181
- # 1027| getExpr (): [Literal] 0
9190
+ # 1027| getExprWithReuse (): [Literal] 0
9182
9191
# 1027| Type = [NullPointerType] decltype(nullptr)
9183
9192
# 1027| Value = [Literal] 0
9184
9193
# 1027| ValueCategory = prvalue
9185
- # 1027| getExpr ().getFullyConverted(): [StaticCast] static_cast<SizedDealloc *>...
9194
+ # 1027| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<SizedDealloc *>...
9186
9195
# 1027| Conversion = [PointerConversion] pointer conversion
9187
9196
# 1027| Type = [PointerType] SizedDealloc *
9188
9197
# 1027| Value = [StaticCast] 0
@@ -9191,11 +9200,11 @@ ir.cpp:
9191
9200
# 1028| getExpr(): [DeleteArrayExpr] delete[]
9192
9201
# 1028| Type = [VoidType] void
9193
9202
# 1028| ValueCategory = prvalue
9194
- # 1028| getExpr (): [Literal] 0
9203
+ # 1028| getExprWithReuse (): [Literal] 0
9195
9204
# 1028| Type = [NullPointerType] decltype(nullptr)
9196
9205
# 1028| Value = [Literal] 0
9197
9206
# 1028| ValueCategory = prvalue
9198
- # 1028| getExpr ().getFullyConverted(): [StaticCast] static_cast<Overaligned *>...
9207
+ # 1028| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<Overaligned *>...
9199
9208
# 1028| Conversion = [PointerConversion] pointer conversion
9200
9209
# 1028| Type = [PointerType] Overaligned *
9201
9210
# 1028| Value = [StaticCast] 0
@@ -9216,6 +9225,9 @@ ir.cpp:
9216
9225
# 1029| Type = [PointerType] PolymorphicBase *
9217
9226
# 1029| Value = [StaticCast] 0
9218
9227
# 1029| ValueCategory = prvalue
9228
+ # 1029| getExprWithReuse(): [ReuseExpr] reuse of static_cast<PolymorphicBase *>...
9229
+ # 1029| Type = [PointerType] PolymorphicBase *
9230
+ # 1029| ValueCategory = prvalue
9219
9231
# 1030| getStmt(5): [ReturnStmt] return ...
9220
9232
# 1032| [CopyAssignmentOperator] EmptyStruct& EmptyStruct::operator=(EmptyStruct const&)
9221
9233
# 1032| <params>:
@@ -16699,7 +16711,7 @@ ir.cpp:
16699
16711
# 2085| getExpr(): [DeleteExpr] delete
16700
16712
# 2085| Type = [VoidType] void
16701
16713
# 2085| ValueCategory = prvalue
16702
- # 2085| getExpr (): [VariableAccess] x
16714
+ # 2085| getExprWithReuse (): [VariableAccess] x
16703
16715
# 2085| Type = [IntPointerType] int *
16704
16716
# 2085| ValueCategory = prvalue(load)
16705
16717
# 2086| getStmt(3): [ReturnStmt] return ...
@@ -16783,6 +16795,9 @@ ir.cpp:
16783
16795
# 2108| getQualifier(): [VariableAccess] b1
16784
16796
# 2108| Type = [PointerType] Base2 *
16785
16797
# 2108| ValueCategory = prvalue(load)
16798
+ # 2108| getExprWithReuse(): [ReuseExpr] reuse of b1
16799
+ # 2108| Type = [PointerType] Base2 *
16800
+ # 2108| ValueCategory = prvalue
16786
16801
# 2110| getStmt(2): [DeclStmt] declaration
16787
16802
# 2110| getDeclarationEntry(0): [VariableDeclarationEntry] definition of b2
16788
16803
# 2110| Type = [PointerType] Base2 *
@@ -16810,6 +16825,9 @@ ir.cpp:
16810
16825
# 2111| getQualifier(): [VariableAccess] b2
16811
16826
# 2111| Type = [PointerType] Base2 *
16812
16827
# 2111| ValueCategory = prvalue(load)
16828
+ # 2111| getExprWithReuse(): [ReuseExpr] reuse of b2
16829
+ # 2111| Type = [PointerType] Base2 *
16830
+ # 2111| ValueCategory = prvalue
16813
16831
# 2113| getStmt(4): [DeclStmt] declaration
16814
16832
# 2113| getDeclarationEntry(0): [VariableDeclarationEntry] definition of d
16815
16833
# 2113| Type = [PointerType] Derived2 *
@@ -16833,6 +16851,9 @@ ir.cpp:
16833
16851
# 2114| getQualifier(): [VariableAccess] d
16834
16852
# 2114| Type = [PointerType] Derived2 *
16835
16853
# 2114| ValueCategory = prvalue(load)
16854
+ # 2114| getExprWithReuse(): [ReuseExpr] reuse of d
16855
+ # 2114| Type = [PointerType] Derived2 *
16856
+ # 2114| ValueCategory = prvalue
16836
16857
# 2115| getStmt(6): [ReturnStmt] return ...
16837
16858
# 2117| [TopLevelFunction] void test_constant_folding_use(int)
16838
16859
# 2117| <params>:
@@ -17168,7 +17189,7 @@ ir.cpp:
17168
17189
# 2176| getExpr(): [DeleteExpr] delete
17169
17190
# 2176| Type = [VoidType] void
17170
17191
# 2176| ValueCategory = prvalue
17171
- # 2176| getExpr (): [ImplicitThisFieldAccess,PointerFieldAccess] x
17192
+ # 2176| getExprWithReuse (): [ImplicitThisFieldAccess,PointerFieldAccess] x
17172
17193
# 2176| Type = [CharPointerType] char *
17173
17194
# 2176| ValueCategory = prvalue(load)
17174
17195
# 2176| getQualifier(): [ThisExpr] this
0 commit comments