We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2009308 commit bfaef28Copy full SHA for bfaef28
lib/AST/RawComment.cpp
@@ -154,7 +154,9 @@ RawComment Decl::getRawComment(bool SerializedOK) const {
154
if (!CachedLocs->DocRanges.empty()) {
155
SmallVector<SingleRawComment, 4> SRCs;
156
for (const auto &Range : CachedLocs->DocRanges) {
157
- SRCs.push_back({ Range, Context.SourceMgr });
+ if (Range.isValid()) {
158
+ SRCs.push_back({ Range, Context.SourceMgr });
159
+ }
160
}
161
auto RC = RawComment(Context.AllocateCopy(llvm::makeArrayRef(SRCs)));
162
0 commit comments