mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'apple/master' into master-next
This commit is contained in:
@@ -1402,7 +1402,7 @@ public:
|
||||
std::unique_ptr<ModuleFile::SerializedDeclUSRTable>
|
||||
ModuleFile::readDeclUSRsTable(ArrayRef<uint64_t> fields, StringRef blobData) {
|
||||
if (fields.empty() || blobData.empty())
|
||||
return nullptr;
|
||||
return nullptr;
|
||||
uint32_t tableOffset = static_cast<uint32_t>(fields.front());
|
||||
auto base = reinterpret_cast<const uint8_t *>(blobData.data());
|
||||
return std::unique_ptr<SerializedDeclUSRTable>(
|
||||
@@ -2610,6 +2610,8 @@ Optional<CommentInfo> ModuleFile::getCommentForDecl(const Decl *D) const {
|
||||
|
||||
if (!DeclCommentTable)
|
||||
return None;
|
||||
if (D->isImplicit())
|
||||
return None;
|
||||
// Compute the USR.
|
||||
llvm::SmallString<128> USRBuffer;
|
||||
llvm::raw_svector_ostream OS(USRBuffer);
|
||||
@@ -2634,6 +2636,8 @@ ModuleFile::getBasicDeclLocsForDecl(const Decl *D) const {
|
||||
// Future compilers may not provide BasicDeclLocsData anymore.
|
||||
if (BasicDeclLocsData.empty())
|
||||
return None;
|
||||
if (D->isImplicit())
|
||||
return None;
|
||||
// Compute the USR.
|
||||
llvm::SmallString<128> USRBuffer;
|
||||
llvm::raw_svector_ostream OS(USRBuffer);
|
||||
|
||||
Reference in New Issue
Block a user