File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
clang/lib/Analysis/FlowSensitive Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -536,12 +536,13 @@ class TransferVisitor : public ConstStmtVisitor<TransferVisitor> {
536
536
537
537
copyRecord (*LocSrc, *LocDst, Env);
538
538
Env.setStorageLocation (*S, *LocDst);
539
- } else {
540
- // CXXOperatorCallExpr can be prvalues, in which case we must create a
541
- // record for them in order for `Environment::getResultObjectLocation()`
542
- // to be able to return a value.
543
- VisitCallExpr (S);
539
+ return ;
544
540
}
541
+
542
+ // CXXOperatorCallExpr can be prvalues. Call `VisitCallExpr`() to create
543
+ // a `RecordValue` for them so that `Environment::getResultObjectLocation()`
544
+ // can return a value.
545
+ VisitCallExpr (S);
545
546
}
546
547
547
548
void VisitCXXFunctionalCastExpr (const CXXFunctionalCastExpr *S) {
You can’t perform that action at this time.
0 commit comments