Skip to content

Commit 31424be

Browse files
committed
[clang][Interp][NFC] Compare std::optionals directly
1 parent 4dd5180 commit 31424be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ bool ByteCodeExprGen<Emitter>::VisitCompoundAssignOperator(
16241624
return false;
16251625
if (!this->emitLoad(*LT, E))
16261626
return false;
1627-
if (*LT != *LHSComputationT) {
1627+
if (LT != LHSComputationT) {
16281628
if (!this->emitCast(*LT, *LHSComputationT, E))
16291629
return false;
16301630
}
@@ -1680,7 +1680,7 @@ bool ByteCodeExprGen<Emitter>::VisitCompoundAssignOperator(
16801680
}
16811681

16821682
// And now cast from LHSComputationT to ResultT.
1683-
if (*ResultT != *LHSComputationT) {
1683+
if (ResultT != LHSComputationT) {
16841684
if (!this->emitCast(*LHSComputationT, *ResultT, E))
16851685
return false;
16861686
}

0 commit comments

Comments
 (0)