File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -693,7 +693,7 @@ class BuilderClosureRewriter
693
693
declRef->setType (LValueType::get (temporaryVar->getType ()));
694
694
695
695
// Load the right-hand side if needed.
696
- if (finalCapturedExpr->getType ()->is <LValueType> ()) {
696
+ if (finalCapturedExpr->getType ()->hasLValueType ()) {
697
697
finalCapturedExpr =
698
698
TypeChecker::addImplicitLoadExpr (ctx, finalCapturedExpr);
699
699
}
@@ -839,7 +839,7 @@ class BuilderClosureRewriter
839
839
auto finalCondExpr = rewriteExpr (condExpr);
840
840
841
841
// Load the condition if needed.
842
- if (finalCondExpr->getType ()->is <LValueType> ()) {
842
+ if (finalCondExpr->getType ()->hasLValueType ()) {
843
843
finalCondExpr = TypeChecker::addImplicitLoadExpr (ctx, finalCondExpr);
844
844
}
845
845
You can’t perform that action at this time.
0 commit comments