We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 181d960 commit f06e07bCopy full SHA for f06e07b
clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@ -1446,10 +1446,13 @@ bool ByteCodeExprGen<Emitter>::VisitPointerCompoundAssignOperator(
1446
if (!visit(RHS))
1447
return false;
1448
1449
- if (Op == BO_AddAssign)
1450
- this->emitAddOffset(*RT, E);
1451
- else
1452
- this->emitSubOffset(*RT, E);
+ if (Op == BO_AddAssign) {
+ if (!this->emitAddOffset(*RT, E))
+ return false;
+ } else {
1453
+ if (!this->emitSubOffset(*RT, E))
1454
1455
+ }
1456
1457
if (DiscardResult)
1458
return this->emitStorePopPtr(E);
0 commit comments