@@ -9068,11 +9068,11 @@ ir.cpp:
90689068# 1016| getExpr(): [DeleteExpr] delete
90699069# 1016| Type = [VoidType] void
90709070# 1016| ValueCategory = prvalue
9071- # 1016| getExpr (): [Literal] 0
9071+ # 1016| getExprWithReuse (): [Literal] 0
90729072# 1016| Type = [NullPointerType] decltype(nullptr)
90739073# 1016| Value = [Literal] 0
90749074# 1016| ValueCategory = prvalue
9075- # 1016| getExpr ().getFullyConverted(): [StaticCast] static_cast<int *>...
9075+ # 1016| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<int *>...
90769076# 1016| Conversion = [PointerConversion] pointer conversion
90779077# 1016| Type = [IntPointerType] int *
90789078# 1016| Value = [StaticCast] 0
@@ -9093,18 +9093,21 @@ ir.cpp:
90939093# 1017| Type = [PointerType] String *
90949094# 1017| Value = [StaticCast] 0
90959095# 1017| ValueCategory = prvalue
9096+ # 1017| getExprWithReuse(): [ReuseExpr] reuse of static_cast<String *>...
9097+ # 1017| Type = [PointerType] String *
9098+ # 1017| ValueCategory = prvalue
90969099# 1018| getStmt(2): [ExprStmt] ExprStmt
90979100# 1018| getExpr(): [DeleteExpr] delete
90989101# 1018| Type = [VoidType] void
90999102# 1018| ValueCategory = prvalue
91009103# 1018| getDeallocatorCall(): [FunctionCall] call to operator delete
91019104# 1018| Type = [VoidType] void
91029105# 1018| ValueCategory = prvalue
9103- # 1018| getExpr (): [Literal] 0
9106+ # 1018| getExprWithReuse (): [Literal] 0
91049107# 1018| Type = [NullPointerType] decltype(nullptr)
91059108# 1018| Value = [Literal] 0
91069109# 1018| ValueCategory = prvalue
9107- # 1018| getExpr ().getFullyConverted(): [StaticCast] static_cast<SizedDealloc *>...
9110+ # 1018| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<SizedDealloc *>...
91089111# 1018| Conversion = [PointerConversion] pointer conversion
91099112# 1018| Type = [PointerType] SizedDealloc *
91109113# 1018| Value = [StaticCast] 0
@@ -9113,11 +9116,11 @@ ir.cpp:
91139116# 1019| getExpr(): [DeleteExpr] delete
91149117# 1019| Type = [VoidType] void
91159118# 1019| ValueCategory = prvalue
9116- # 1019| getExpr (): [Literal] 0
9119+ # 1019| getExprWithReuse (): [Literal] 0
91179120# 1019| Type = [NullPointerType] decltype(nullptr)
91189121# 1019| Value = [Literal] 0
91199122# 1019| ValueCategory = prvalue
9120- # 1019| getExpr ().getFullyConverted(): [StaticCast] static_cast<Overaligned *>...
9123+ # 1019| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<Overaligned *>...
91219124# 1019| Conversion = [PointerConversion] pointer conversion
91229125# 1019| Type = [PointerType] Overaligned *
91239126# 1019| Value = [StaticCast] 0
@@ -9138,6 +9141,9 @@ ir.cpp:
91389141# 1020| Type = [PointerType] PolymorphicBase *
91399142# 1020| Value = [StaticCast] 0
91409143# 1020| ValueCategory = prvalue
9144+ # 1020| getExprWithReuse(): [ReuseExpr] reuse of static_cast<PolymorphicBase *>...
9145+ # 1020| Type = [PointerType] PolymorphicBase *
9146+ # 1020| ValueCategory = prvalue
91419147# 1021| getStmt(5): [ReturnStmt] return ...
91429148# 1024| [TopLevelFunction] void OperatorDeleteArray()
91439149# 1024| <params>:
@@ -9146,11 +9152,11 @@ ir.cpp:
91469152# 1025| getExpr(): [DeleteArrayExpr] delete[]
91479153# 1025| Type = [VoidType] void
91489154# 1025| ValueCategory = prvalue
9149- # 1025| getExpr (): [Literal] 0
9155+ # 1025| getExprWithReuse (): [Literal] 0
91509156# 1025| Type = [NullPointerType] decltype(nullptr)
91519157# 1025| Value = [Literal] 0
91529158# 1025| ValueCategory = prvalue
9153- # 1025| getExpr ().getFullyConverted(): [StaticCast] static_cast<int *>...
9159+ # 1025| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<int *>...
91549160# 1025| Conversion = [PointerConversion] pointer conversion
91559161# 1025| Type = [IntPointerType] int *
91569162# 1025| Value = [StaticCast] 0
@@ -9171,18 +9177,21 @@ ir.cpp:
91719177# 1026| Type = [PointerType] String *
91729178# 1026| Value = [StaticCast] 0
91739179# 1026| ValueCategory = prvalue
9180+ # 1026| getExprWithReuse(): [ReuseExpr] reuse of static_cast<String *>...
9181+ # 1026| Type = [PointerType] String *
9182+ # 1026| ValueCategory = prvalue
91749183# 1027| getStmt(2): [ExprStmt] ExprStmt
91759184# 1027| getExpr(): [DeleteArrayExpr] delete[]
91769185# 1027| Type = [VoidType] void
91779186# 1027| ValueCategory = prvalue
91789187# 1027| getDeallocatorCall(): [FunctionCall] call to operator delete[]
91799188# 1027| Type = [VoidType] void
91809189# 1027| ValueCategory = prvalue
9181- # 1027| getExpr (): [Literal] 0
9190+ # 1027| getExprWithReuse (): [Literal] 0
91829191# 1027| Type = [NullPointerType] decltype(nullptr)
91839192# 1027| Value = [Literal] 0
91849193# 1027| ValueCategory = prvalue
9185- # 1027| getExpr ().getFullyConverted(): [StaticCast] static_cast<SizedDealloc *>...
9194+ # 1027| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<SizedDealloc *>...
91869195# 1027| Conversion = [PointerConversion] pointer conversion
91879196# 1027| Type = [PointerType] SizedDealloc *
91889197# 1027| Value = [StaticCast] 0
@@ -9191,11 +9200,11 @@ ir.cpp:
91919200# 1028| getExpr(): [DeleteArrayExpr] delete[]
91929201# 1028| Type = [VoidType] void
91939202# 1028| ValueCategory = prvalue
9194- # 1028| getExpr (): [Literal] 0
9203+ # 1028| getExprWithReuse (): [Literal] 0
91959204# 1028| Type = [NullPointerType] decltype(nullptr)
91969205# 1028| Value = [Literal] 0
91979206# 1028| ValueCategory = prvalue
9198- # 1028| getExpr ().getFullyConverted(): [StaticCast] static_cast<Overaligned *>...
9207+ # 1028| getExprWithReuse ().getFullyConverted(): [StaticCast] static_cast<Overaligned *>...
91999208# 1028| Conversion = [PointerConversion] pointer conversion
92009209# 1028| Type = [PointerType] Overaligned *
92019210# 1028| Value = [StaticCast] 0
@@ -9216,6 +9225,9 @@ ir.cpp:
92169225# 1029| Type = [PointerType] PolymorphicBase *
92179226# 1029| Value = [StaticCast] 0
92189227# 1029| ValueCategory = prvalue
9228+ # 1029| getExprWithReuse(): [ReuseExpr] reuse of static_cast<PolymorphicBase *>...
9229+ # 1029| Type = [PointerType] PolymorphicBase *
9230+ # 1029| ValueCategory = prvalue
92199231# 1030| getStmt(5): [ReturnStmt] return ...
92209232# 1032| [CopyAssignmentOperator] EmptyStruct& EmptyStruct::operator=(EmptyStruct const&)
92219233# 1032| <params>:
@@ -16699,7 +16711,7 @@ ir.cpp:
1669916711# 2085| getExpr(): [DeleteExpr] delete
1670016712# 2085| Type = [VoidType] void
1670116713# 2085| ValueCategory = prvalue
16702- # 2085| getExpr (): [VariableAccess] x
16714+ # 2085| getExprWithReuse (): [VariableAccess] x
1670316715# 2085| Type = [IntPointerType] int *
1670416716# 2085| ValueCategory = prvalue(load)
1670516717# 2086| getStmt(3): [ReturnStmt] return ...
@@ -16783,6 +16795,9 @@ ir.cpp:
1678316795# 2108| getQualifier(): [VariableAccess] b1
1678416796# 2108| Type = [PointerType] Base2 *
1678516797# 2108| ValueCategory = prvalue(load)
16798+ # 2108| getExprWithReuse(): [ReuseExpr] reuse of b1
16799+ # 2108| Type = [PointerType] Base2 *
16800+ # 2108| ValueCategory = prvalue
1678616801# 2110| getStmt(2): [DeclStmt] declaration
1678716802# 2110| getDeclarationEntry(0): [VariableDeclarationEntry] definition of b2
1678816803# 2110| Type = [PointerType] Base2 *
@@ -16810,6 +16825,9 @@ ir.cpp:
1681016825# 2111| getQualifier(): [VariableAccess] b2
1681116826# 2111| Type = [PointerType] Base2 *
1681216827# 2111| ValueCategory = prvalue(load)
16828+ # 2111| getExprWithReuse(): [ReuseExpr] reuse of b2
16829+ # 2111| Type = [PointerType] Base2 *
16830+ # 2111| ValueCategory = prvalue
1681316831# 2113| getStmt(4): [DeclStmt] declaration
1681416832# 2113| getDeclarationEntry(0): [VariableDeclarationEntry] definition of d
1681516833# 2113| Type = [PointerType] Derived2 *
@@ -16833,6 +16851,9 @@ ir.cpp:
1683316851# 2114| getQualifier(): [VariableAccess] d
1683416852# 2114| Type = [PointerType] Derived2 *
1683516853# 2114| ValueCategory = prvalue(load)
16854+ # 2114| getExprWithReuse(): [ReuseExpr] reuse of d
16855+ # 2114| Type = [PointerType] Derived2 *
16856+ # 2114| ValueCategory = prvalue
1683616857# 2115| getStmt(6): [ReturnStmt] return ...
1683716858# 2117| [TopLevelFunction] void test_constant_folding_use(int)
1683816859# 2117| <params>:
@@ -17168,7 +17189,7 @@ ir.cpp:
1716817189# 2176| getExpr(): [DeleteExpr] delete
1716917190# 2176| Type = [VoidType] void
1717017191# 2176| ValueCategory = prvalue
17171- # 2176| getExpr (): [ImplicitThisFieldAccess,PointerFieldAccess] x
17192+ # 2176| getExprWithReuse (): [ImplicitThisFieldAccess,PointerFieldAccess] x
1717217193# 2176| Type = [CharPointerType] char *
1717317194# 2176| ValueCategory = prvalue(load)
1717417195# 2176| getQualifier(): [ThisExpr] this
0 commit comments