Skip to content

Commit 1795471

Browse files
committed
Use type map call instead of setting type directly
1 parent 3084d09 commit 1795471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ namespace {
13531353
// and possibly infer the type of the variable that way.
13541354
CS.getTypeChecker().validateDecl(E->getDecl());
13551355
if (E->getDecl()->isInvalid()) {
1356-
E->setType(E->getDecl()->getInterfaceType());
1356+
CS.setType(E, E->getDecl()->getInterfaceType());
13571357
return nullptr;
13581358
}
13591359

0 commit comments

Comments
 (0)