Skip to content

Commit 52e8f3d

Browse files
committed
AST: unblock linux build by providing explicit constructor
1 parent a2f7a25 commit 52e8f3d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ const Decl::CachedExternalSourceLocs *Decl::calculateSerializedLocs() const {
490490
auto *File = cast<FileUnit>(getDeclContext()->getModuleScopeContext());
491491
auto Locs = File->getBasicLocsForDecl(this);
492492
if (!Locs.hasValue()) {
493-
static const Decl::CachedExternalSourceLocs NullLocs;
493+
static const Decl::CachedExternalSourceLocs NullLocs{};
494494
return &NullLocs;
495495
}
496496
auto *Result = getASTContext().Allocate<Decl::CachedExternalSourceLocs>();

utils/gyb_sourcekit_support/UIDs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def __init__(self, internal_name, external_name):
174174
KEY('VFSName', 'key.vfs.name'),
175175
KEY('VFSOptions', 'key.vfs.options'),
176176
KEY('Files', 'key.files'),
177+
KEY('IgnoreSourceInfoFile', 'key.ignore_source_info_file'),
177178
]
178179

179180

0 commit comments

Comments
 (0)