Skip to content

Commit 2049216

Browse files
authored
Merge pull request #41208 from gottesmm/pr-fae72e24b0a9042a4b469ca911c5560195e2cd5a
Experiment. Add DIExpr to SILDebugVariable::operator==
2 parents 5c55c2e + 0fb2109 commit 2049216

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

include/swift/SIL/SILInstruction.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,13 +1808,10 @@ struct SILDebugVariable {
18081808
static Optional<SILDebugVariable>
18091809
createFromAllocation(const AllocationInst *AI);
18101810

1811-
// We're not comparing DIExpr here because strictly speaking,
1812-
// DIExpr is not part of the debug variable. We simply piggyback
1813-
// it in this class so that's it's easier to carry DIExpr around.
18141811
bool operator==(const SILDebugVariable &V) {
18151812
return ArgNo == V.ArgNo && Constant == V.Constant && Name == V.Name &&
18161813
Implicit == V.Implicit && Type == V.Type && Loc == V.Loc &&
1817-
Scope == V.Scope;
1814+
Scope == V.Scope && DIExpr == DIExpr;
18181815
}
18191816

18201817
bool isLet() const { return Name.size() && Constant; }

0 commit comments

Comments
 (0)