Skip to content

Commit 3cc6b70

Browse files
committed
[NFC] Static cast optional bit-field
Extension of 88cec51 for a newly added bitfield.
1 parent 360c5d8 commit 3cc6b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/TypeCheckRequests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void HasNoncopyableAnnotationRequest::cacheResult(bool value) const {
345345
llvm::Optional<bool> IsEscapableRequest::getCachedResult() const {
346346
auto decl = std::get<0>(getStorage());
347347
if (decl->LazySemanticInfo.isEscapableComputed)
348-
return decl->LazySemanticInfo.isEscapable;
348+
return static_cast<bool>(decl->LazySemanticInfo.isEscapable);
349349

350350
return llvm::None;
351351
}

0 commit comments

Comments
 (0)