Skip to content

Commit 376e629

Browse files
committed
Fix comment
1 parent 21dd010 commit 376e629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/DebugInfoMetadata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ static DIScope *GetNearestCommonScope(DILocation *L1, DILocation *L2) {
243243
return nullptr;
244244
}
245245

246-
/// Walk up the chain of parent local scopes until the file has changed
247-
/// or DISubprogram reached.
246+
/// Returns next parent scope having different file within DISubprogram
247+
/// or nullptr.
248248
static DILocalScope *NextScopeWithDifferentFile(MDNode *LocOrScope) {
249249
assert((isa<DILocation>(LocOrScope) || isa<DILocalScope>(LocOrScope)) &&
250250
"DILocation or DILocalScope expected");

0 commit comments

Comments
 (0)