Skip to content

Commit b3d44e0

Browse files
author
Brian King
committed
Do not use GNU ternary extension
1 parent 5447443 commit b3d44e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/DeclContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ getSharedPrivateDeclContext(const DeclContext *DC, const SourceFile *useSF) {
993993
lastExtension = ED;
994994

995995
// If there's no last extension, return the supplied context.
996-
return lastExtension ?: DC;
996+
return lastExtension ? lastExtension : DC;
997997
}
998998

999999
bool AccessScope::checkSharedPrivateAccess(const DeclContext *useDC, const DeclContext *sourceDC) {

0 commit comments

Comments
 (0)